Android ContentLoadingProgressBar
Android ContentLoadingProgressBar 大约 871 字- 控件
<android.support.v4.widget.ContentLoadingProgressBar
android:id="@+id/address_looking_up"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"/>
- Progressbar的样式
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
style="@style/Widget.AppCompat.ProgressBar"
style="@style/Base.Widget.AppCompat.ProgressBar"
- max最大值,progress当前值
android:max="100"
android:progress="0"
- 方法
void hide()
Hide the progress view if it is visible.
void onAttachedToWindow()
This is called when the view is attached to a window.
void onDetachedFromWindow()
This is called when the view is detached from a window.
void show()
Show the progress view after waiting for a minimum delay.
阅读 3446 · 发布于 2019-04-11
————        END        ————
扫描下方二维码关注公众号和小程序↓↓↓

昵称: