当前位置:网站首页>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 Catonwhen , 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
边栏推荐
- Typescript Learning Guide
- 一套关于 内存对齐 的C#面试题,做错的人很多!
- 【鉴权/授权】自定义一个身份认证Handler
- 最通俗易懂的依赖注入与控制反转
- FileNotFoundError: [Errno 2] No such file or directory
- Close the computer port
- L2-006 樹的遍曆(中後序確定二叉樹&層序遍曆)
- Response processing of openfeign
- Shell script learning -- practical case
- How to write the expected salary on your resume to double your salary during the interview?
猜你喜欢

树莓派开发笔记(十二):入手研华ADVANTECH工控树莓派UNO-220套件(一):介绍和运行系统

Service avalanche effect

MAUI初体验:爽

Response processing of openfeign
![Introduction to ACM [inclusion exclusion theorem]](/img/3a/9bc2a972d7587aab51fceb8cd2b9bd.png)
Introduction to ACM [inclusion exclusion theorem]

Openfeign details show

MYSQL03_ SQL overview, rules and specifications, basic select statements, display table structure

Sonic cloud real machine tutorial

Detailed explanation of distributed things

Blazor University (11)组件 — 替换子组件的属性
随机推荐
Restart redis
Distributed system services
微软是如何解决 PC 端程序多开问题的
[ncnn] - the meaning of - 23300 in param
ASP.NET 6 中间件系列 - 自定义中间件类
Source Generator实战
Winsock programming interface experiment: implementation of ipconfig
PDH optical transceiver 4-way E1 + 4-way 100M Ethernet 4-way 2m optical transceiver FC single fiber 20km rack type
[Euler plan question 13] sum of large numbers
AC & A2C & A3C
基于.NetCore开发博客项目 StarBlog - (2) 环境准备和创建项目
最通俗易懂的依赖注入与控制反转
Guangcheng cloud service can fill in a daily report regularly every day
Regular object type conversion tool - Common DOM class
Some problems encountered in setting Django pure interface, channel and MySQL on the pagoda panel
Shell script learning notes -- shell operation on files sed
Chapter VII project communication management of information system project manager summary
树莓派开发笔记(十二):入手研华ADVANTECH工控树莓派UNO-220套件(一):介绍和运行系统
Vs code setting line feed
Wepy learning record