#sendMessage

sendmessage参数

//创建一个窗口constintWM_CREATE=0x01;//当一个窗口被破坏时发送constintWM_DESTROY=0x02;//移动一个窗口constintWM_MOVE=0x03;//改变一个窗口的大小constintWM_SIZE=0x05;//一个窗口被激活或失去激活状态constintWM_ACTI...
代码星球 代码星球·2020-08-08

sendMessage 与 obtainMessage (sendToTarget)比较

我们平时在做到多线程问题的时候可能利用Handler去传递Message,其中,经常使用的就是1、newHandler().obtainMessage().sendToTarget();2、newHandler().sendMessage(newMessage());第一种是直接传递what,obj等,msg的一些数据...