当前位置:网站首页>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
边栏推荐
- Chapter VI project information management system summary
- 腾讯视频VIP会员,周卡特价9元!腾讯官方直充,会员立即生效!
- 《信息系统项目管理师总结》第六章 项目人力资源管理
- 如果通过 C# 实现对象的深复制 ?
- BLDC double closed loop (speed PI + current PI) Simulink simulation model
- 最通俗易懂的依赖注入与控制反转
- Niuke white moon race 5 [problem solving mathematics field]
- Detailed explanation of distributed things
- Summary of interface automation interview questions for software testing
- Shell script learning -- practical case
猜你喜欢

tf. keras. layers. Density function

Distributed system services

Tips in MATLAB

腾讯视频涨价:一年多赚74亿!关注我领取腾讯VIP会员,周卡低至7元

TP5 customization in extend directory succeeded and failed. Return information

基于.NetCore开发博客项目 StarBlog - (1) 为什么需要自己写一个博客?

Development notes of raspberry pie (12): start Advantech industrial control raspberry pie uno-220 Kit (I): introduction and operation of the system

Notes sur le développement de la tarte aux framboises (XII): commencer à étudier la suite UNO - 220 de la tarte aux framboises de contrôle industriel advantech (i): Introduction et fonctionnement du s

C# 11 的这个新特性,我愿称之最强!

Q-Learning & Sarsa
随机推荐
【新版发布】ComponentOne 新增 .NET 6 和 Blazor 平台控件支持
Source Generator实战
Xamarin效果第二十一篇之GIS中可扩展浮动操作按钮
c#可变参数params的介绍
Laravel new route file
对.NET未来的一点感悟
Openfeign details show
Classification of technology selection (2022)
MYSQL05_ Ordr by sorting, limit grouping, group by grouping
Small companies don't make formal offers
Configuring Apache Web services for servers such as Tianyi cloud
Service avalanche effect
C# 读写二进制文件
《信息系统项目管理师总结》第四章 项目成本管理
《信息系统项目管理师总结》第五章 项目质量管理
Encapsulation of ele table
Onenet connection process
Binary tree
Opencv combines multiple pictures into video
Centos7 install MySQL 8 0