当前位置:网站首页>View. post VS Handler. Differences and usage scenarios of post
View. post VS Handler. Differences and usage scenarios of post
2022-06-25 10:02:00 【TowerOs】
View.post
When the corresponding Widget View No, attach To window When , Corresponding Runnable Will be submitted to ViewRootImpl#RunQueue , If already attach Words , It will be submitted to UI Thread Corresponding Handler Of MessageQueue Inside
And the corresponding RunQueue A document description :
The run queue is used to enqueue pending work from Views when no Handler is attached. The work is executed during the next call to performTraversals on the thread.
Problem scenario :
When I use View.postDelay To submit a Runnable When , stay Runnable Use of recursion in VIew Submit [email protected] The delay task , When the page is not visible , The corresponding task will not be executed
边栏推荐
- Jetpack compose layout (IV) - constraintlayout
- 字符串 最长公共前缀
- pmp考试题型需要注意哪些?
- 字符串 实现 strStr()
- The problem of wirengpi program running permission
- Vscode attempted to write the procedure to a pipeline that does not exist
- 在指南针上面开股票账户好不好,安不安全?
- x86的编码格式
- Modbus协议与SerialPort端口读写
- 8. Intelligent transportation project (1)
猜你喜欢

字符串 实现 strStr()

manhattan_slam环境配置

vscode试图过程写入管道不存在

字符串 最长公共前缀
![[MySQL learning notes 22] index](/img/08/db7b765f7ddaa5706e3f7d00690d23.png)
[MySQL learning notes 22] index

Download the arm64 package of Debian on X86 computer

纳米数据世界杯数据接口,中超数据,体育数据比分,世界杯赛程api,足球比赛实时数据接口

Get started quickly with jetpack compose Technology
![[2020 cloud development + source code] 30 minutes to create and launch wechat applet practical project | zero cost | cloud database | cloud function](/img/89/39851fee714be872a599ad4ddd4852.jpg)
[2020 cloud development + source code] 30 minutes to create and launch wechat applet practical project | zero cost | cloud database | cloud function

链表 删除链表中的节点
随机推荐
The problem of automatic page refresh after the flyer WebView pops up the soft keyboard
The way that flutter makes the keyboard disappear (forwarding from the dependent window)
puzzle(019.2)六边锁
CyCa 2022 children's physical etiquette primary teacher class Shenzhen headquarters station successfully concluded
How do dating applets make millions a year? What is the profit model?
力扣-104. 二叉树的最大深度
Puzzle (019.2) hexagonal lock
pmp考试题型需要注意哪些?
Flutter dialog: cupertinoalertdialog
Modbus协议与SerialPort端口读写
CyCa children's physical etiquette Yueqing City training results assessment successfully concluded
[Ruby on rails full stack course] course directory
Learning notes of rxjs takeuntil operator
字符串 最长公共前缀
Gradle download warehouse is slow
Reza RA series - development environment construction
SQL to object thinking vs SQL of object thinking
MySQL source code reading (II) login connection debugging
Creo makes a mobius belt in the simplest way
x86电脑上下载debian的arm64的包