postInvalidate、removeAllViewsInLayout、refreshDrawableState用法

postInvalidate、invalidate:会调用控件的onDraw()重绘控件

refreshDrawableState:当控件在使用一个对控件状态敏感的Drawable对象时使用,如一个Button被按下时可以调用该方法,用来改变背景drawable的颜色(参照CompoundButton->setChecked)

removeAllViewsInLayout:删除所有的View

转至:http://stackoverflow.com/questions/8251200/confused-with-removeallviewsinlayout-postinvalidate-and-refreshdrawablestat

 

 

本文转自:http://blog.csdn.net/newcman/article/details/7782237

posted @ 2014-07-17 13:15  似水流云  阅读(906)  评论(0编辑  收藏  举报