Android学习之路六:ProgressBar
16lz
2021-01-23
ProgressBar是进度条,Android系统自带的进度条有两种,分别是圆形进度条和水平进度条。
XML重要属性:
android:progressBarStyle:默认进度条样式;
android:progressBarStyleHorizontal:水平样式。
案例一(圆形进度条):
<ProgressBar android:id="@+id/largeProgressBar" style="?android:attr/progressBarStyleLarge" android:layout_width="fill_parent" android:layout_height="wrap_content" />
案例二(水平进度条):
<ProgressBar android:id="@+id/horizontalProgressBar" style="?android:attr/progressBarStyleHorizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" />
更多相关文章
- Android 解决自定义 CheckBox 样式时的背景显示异常问题
- android style(样式)和theme(主题)设置
- 安卓样式之shape(形状)
- ListView样式实现总结
- Android开发布局系列: LinearLayout布局实现垂直水平居中
- ListView设置分割线Divider样式
- 换掉整个程序的bitton样式,以及button的父样式