当前位置:网站首页>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
边栏推荐
- Mengyou Technology: six elements of tiktok's home page decoration, how to break ten thousand dollars in three days
- MySQL创建给出语句
- How much money have I made by sticking to fixed investment for 3 years?
- [shared farm] smart agriculture applet, customized development and secondary development of Kaiyuan source code, which is more appropriate?
- PHP obtains the IP address, and the apache2 server runs without error
- x86的编码格式
- x86电脑上下载debian的arm64的包
- Gradle download warehouse is slow
- Cubemx stm32f105rb USB flash drive reading and writing detailed tutorial
- Best producer consumer code
猜你喜欢

Unique Wulin, architecture selection manual (including PDF)

puzzle(019.2)六边锁

Minio基本使用与原理

CYCA少儿形体礼仪 乐清市培训成果考核圆满落幕

Etcd tutorial - Chapter 4 etcd cluster security configuration

Tiktok brand goes to sea: both exposure and transformation are required. What are the skills of information flow advertising?

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

2台三菱PLC走BCNetTCP协议,能否实现网口无线通讯?

Fcpx quickly add subtitles | Final Cut Pro import fcpxml subtitle file does not match the video time? I got it in code

Kotlin advanced generic
随机推荐
Use evo
Exception: gradle task assemblydebug failed with exit code 1
NFC read / write mode development - book summary
PHP obtains the IP address, and the apache2 server runs without error
[design completion - opening report] zufeinfo 2018 software engineering major (including FAQ)
Oracle function trigger
The gradle configuration supports the upgrade of 64 bit architecture of Xiaomi, oppo, vivo and other app stores
Etcd教程 — 第四章 Etcd集群安全配置
Kotlin advanced - class
Wearable devices may reveal personal privacy
[buuctf.reverse] 121-125
[project part - structure and content writing of technical scheme] software system type mass entrepreneurship and innovation project plan and Xinmiao guochuang (Dachuang) application
Creating a binary tree (binary linked list) from a generalized table
oracle 函数 触发器
Rxjs TakeUntil 操作符的学习笔记
puzzle(019.2)六边锁
[zero foundation understanding innovation and entrepreneurship competition] overall cognition and introduction of mass entrepreneurship and innovation competition (including FAQs and integration of bl
clang frontend command failed with exit code 250
Wallys/MULTI-FUNCTION IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL
Kotlin common standard functions