Android控件

摆渡人 / 2023-09-02 / 原文

ProgressBar

新建的时候需要在构造函数中加入父activity的指针

不知道因为什么原因,progress show之后, 如果使用Thread.sleep之后,再dismiss 不会弹出dialog 

所以这个东西应该是在多线程中用的

其中setMessage这个方法被废弃了,但是有很多其他的方法,可以设置view 以及按钮等

 

ListView