当前位置:网站首页>Load view Caton
Load view Caton
2022-04-23 03:03:00 【liusaisaiV1】
Load view stuck
Preface
- background : In use AChartEngine Carry out drawing combination bottomSheetBehavior Drawing ;
problem
In the use of bottomSheetBehavior Jam occurs when displaying the view ,
To analyze problems
AChartEngineView Too many views have been added ??
- In use , At the time of initialization View Draw a standard line in , Then dynamically add and replace different lines ; Maybe it's the repeated replacement of data that causes the attempt to jam ?
- test : Cancels the repeated replacement of data , When initializing data, three pieces of data are drawn in the background ;
- result : There's a lot of data , But there is no Caton phenomenon ?
Reading data from text too long ?
- I have a lot of data , from 150K Of txt Get in file Tens of thousands double data ;
- test : Record before and after drawing ( Including parsing data ) Time for , Calculate the time taken to draw the picture :
- result : Within one second , in fact , Very fast !
Caton appears when the drawing is displayed ?
- The drawing line has been drawn , But when it is displayed, there is always Caton , Even after repeatedly replacing the view, it flashed back ;
- test ; Let the thread sleep before displaying the view , Let the view be fully loaded and displayed at the end ;
- result : meaningless , in fact , This coincides with the previous one , The drawing method is very fast , But still stuck .
The ultimate solution
- Search on the Internet
Android UI Causes and solutions of Caton
when , be aware ,Android Every 16ms Will draw once Activity; And I use... In threads AChartEngine After drawing , It was carried out manually postInvalidate() Method to force redrawing ; - in fact , Forced redrawing will result in a jam every time ;
- It's the same with AChartEngine It has something to do with the use of .
The first one is about UI Optimized articles ! come on. ! Origie !
版权声明
本文为[liusaisaiV1]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220630032578.html
边栏推荐
- Cloud computing learning 1 - openstack cloud computing installation and deployment steps with pictures and texts (Xiandian 2.2)
- 如果通过 C# 实现对象的深复制 ?
- The difference between encodeuri and encodeuricomponent
- How to use C language to realize [guessing numbers game]
- Golden nine silver ten interview season, you are welcome to take away the interview questions (with detailed answer analysis)
- 《信息系统项目管理师总结》第四章 项目成本管理
- C# 11 对 ref 和 struct 的改进
- Use of MySQL command line client and common commands
- MYSQL03_ SQL overview, rules and specifications, basic select statements, display table structure
- How to write the expected salary on your resume to double your salary during the interview?
猜你喜欢
BLDC double closed loop (speed PI + current PI) Simulink simulation model
Response processing of openfeign
TP5 inherits base and uses the variables in base
Introduction and use of openfeign component
Shell script learning notes - regular expressions
Opencv combines multiple pictures into video
最通俗易懂的依赖注入之服务容器与作用域
Q-Learning & Sarsa
Assembly learning Chapter III of assembly language (Third Edition) written by Wang Shuang
C# 11 的这个新特性,我愿称之最强!
随机推荐
Redis Cluster集群,主节点故障,主从切换后ip变化,客户端需要处理不
Introduction and use of openfeign component
[Euler plan question 13] sum of large numbers
Laravel's own paging query
树莓派开发笔记(十二):入手研华ADVANTECH工控树莓派UNO-220套件(一):介绍和运行系统
Onenet connection process
Close the computer port
Huawei machine test question -- deformation of hj53 Yang Hui triangle
Gavl021, gavl281, AC220V to 5v200ma small volume non isolated chip scheme
C#中元组对象Tuple的使用
AspNetCore配置多环境log4net配置文件
Chapter VII project communication management of information system project manager summary
How to deploy a website with only a server and no domain name?
微软是如何解决 PC 端程序多开问题的
eventBus
FileNotFoundError: [Errno 2] No such file or directory
Wepy learning record
tf. keras. layers. Embedding function
SQL statement - DDL
基于.NetCore开发博客项目 StarBlog - (2) 环境准备和创建项目