Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker DevOps


Android ContentLoadingProgressBar 进度条控件

Android 大约 866 字

控件

<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.
阅读 6579 · 发布于 2019-04-11

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批