android中handler中 obtainmessge與New message區別

obtainmessage()是從消息池中拿來一個msg 不須要另開闢空間newjava new須要從新申請,效率低,obtianmessage能夠循環利用;android //use Handler.obtainMessage(),instead of msg = new Message(); //because if there is already an Message object,tha
相關文章
相關標籤/搜索