当前位置:网站首页>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
边栏推荐
- Consul的基本使用与集群搭建
- How much money have I made by sticking to fixed investment for 3 years?
- 广发证券靠谱吗?是否合法?开股票账户安全吗?
- Fcpx quickly add subtitles | Final Cut Pro import fcpxml subtitle file does not match the video time? I got it in code
- [zufe expense reimbursement] zhecai invoice reimbursement specification (taking Xinmiao reimbursement as an example), which can be passed in one trip at most
- [competition - Rural Revitalization] experience sharing of Zhejiang Rural Revitalization creative competition
- manhattan_slam环境配置
- JS tool function, self encapsulating a throttling function
- 富时A50开户什么地方安全
- Jetpack compose layout (IV) - constraintlayout
猜你喜欢
[buuctf.reverse] 117-120
瑞萨RA系列-开发环境搭建
Wechat official account can reply messages normally, but it still prompts that the service provided by the official account has failed. Please try again later
Flutter dialog: cupertinoalertdialog
Modbus协议与SerialPort端口读写
Title B of the certification cup of the pistar cluster in the Ibagu catalog
203 postgraduate entrance examination Japanese self-study postgraduate entrance examination experience post; Can I learn Japanese by myself?
Wallys/MULTI-FUNCTION IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL
Pytorch_Geometric(PyG)使用DataLoader报错RuntimeError: Sizes of tensors must match except in dimension 0.
Can two Mitsubishi PLC adopt bcnettcp protocol to realize wireless communication of network interface?
随机推荐
2台三菱PLC走BCNetTCP协议,能否实现网口无线通讯?
[2020 cloud development + source code] 30 minutes to create and launch wechat applet practical project | zero cost | cloud database | cloud function
clang frontend command failed with exit code 250
Vscode attempted to write the procedure to a pipeline that does not exist
Jetpack compose layout (III) - custom layout
瑞吉外卖项目(二)
Minio基本使用与原理
Rxjs TakeUntil 操作符的学习笔记
Kotlin Foundation
The problem of wirengpi program running permission
[matlab] image binarization (imbinarize function)
MongoDB的原理、基本使用、集群和分片集群
Cubemx stm32f105rb USB flash drive reading and writing detailed tutorial
The gradle configuration supports the upgrade of 64 bit architecture of Xiaomi, oppo, vivo and other app stores
Flutter dialog: cupertinoalertdialog
字符串 实现 strStr()
22 mathematical modeling contest 22 contest C
‘Flutter/Flutter. h‘ file not found
The problem of automatic page refresh after the flyer WebView pops up the soft keyboard
How to "transform" small and micro businesses (I)?