摘要:
xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="mat 阅读全文
posted @ 2024-01-06 20:19
小白龙白龙马
阅读(58)
评论(0)
推荐(0)
摘要:
一、认识Looper和Handler对象 当主线程诞生时,就会去执行一个消息循环(Message Loop),以便持续监视它的消息队列(Message Queue简称MQ)。 当UI事件发生了,通常会立即丢一个Message给MQ,此时主线程就立即从MQ里边取出该消息并处理。 比如,用户在UI界面上 阅读全文
posted @ 2024-01-06 18:50
小白龙白龙马
阅读(130)
评论(0)
推荐(0)
摘要:
xml配置文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_par 阅读全文
posted @ 2024-01-06 18:04
小白龙白龙马
阅读(51)
评论(0)
推荐(0)