android进阶
文章平均质量分 97
忆```昔
这个作者很懒,什么都没留下…
展开
-
android消息处理机制
android的消息处理 Looper类 Looper的字面意思是“循环者”,它被设计用来使一个普通线程变成Looper线程。所谓Looper线程就是循环工作的线程。在程序开发中(尤其是GUI开发中),我们经常会需要一个线程不断循环,一旦有新任务则执行,执行完继续等待下一个任务,这就是Looper线程。使用Looper类创建Looper线程很简单: public class LooperThread extends Thread { @Override public void run() {原创 2022-03-22 13:47:09 · 3042 阅读 · 0 评论 -
Android Drawable资源
android中的drawable资源 Drawable简介 一.StateListDrawable (选择器) 语法 <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" android:constantSize=["true" | "false"] android:dither=["true" | "false原创 2022-03-09 11:03:29 · 288 阅读 · 0 评论 -
Android View事件体系
Android View事件体系原创 2022-03-04 09:53:27 · 2698 阅读 · 0 评论