安卓經常使用組件

安卓經常使用組件
一、progressbar:進度條android

android:id="@+id/pb_test3_loading1"
android:layout_width=「wrap_content」
android:layout_height=「wrap_content」/>ide

二、進度條樣式:
@android:style/Widget.ProgressBar.Horizontal:水平進度條(能夠顯示刻度,經常使用)。動畫

@android:style/Widget.ProgressBar.Small:小進度條。視頻

@android:style/Widget.ProgressBar.Large:大進度條。對象

@android:style/Widget.ProgressBar.Inverse:不斷跳躍、旋轉畫面的進度條。get

@android:style/Widget.ProgressBar.Large.Inverse:不斷跳躍、旋轉動畫的大進度條。it

@android:style/Widget.ProgressBar.Small.inverse:不斷跳躍、旋轉動畫的小進度條。
·android:max:進度條的最大值io

·android:progress:進度條已完成進度值
·
android:progressDrawable:設置軌道對應的Drawable對象
·
android:indeterminate:若是設置成true,則進度條不精確顯示進度
·
android:indeterminateDrawable:設置不顯示進度的進度條的Drawable對象
·
android:indeterminateDuration:設置不精確顯示進度的持續時間
·
android:secondaryProgress:二級進度條,相似於視頻播放的一條是當前插放進度,一條是緩衝進度,前者經過progress屬性進行設置!class

相關文章
相關標籤/搜索