这里有个小问题。完成的时候应该显示 完成。这个随意了
下面直接开撸:
自定义view中,如果直接继承自现有控件的话,那么在ondraw方法中,可以去选择性的在super前面或者后面写一些方法
在xml中使用:
使用之前记得
mProgressButton.setBackgroundResource(R.drawable.selector_app_detail_bottom_normal);mProgressButton.setBackgroundResource(R.drawable.selector_app_detail_bottom_downloading);
selector_app_detail_bottom_downloading
selector_app_detail_bottom_normal
|
|