您的位置:首页 > 其它

View(视图)———进度条

2016-05-10 22:15 253 查看
一.分类

1.不可拖动 ProgressBar

2.可拖动

1>SeekBar

2>RatingBar

二.ProgressBar

1.style 样式

1>水平

?android:attr/progressBarStyleHorizontal;

2>旋转

1-默认样式

2-设置大小

?android:attr/progressBarStyleLarge;

2.水平进度条

1>progress 当前进度

2>max 最大进度

3>secondaryProgress 第二进度:颜色不同。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
tools:context="com.example.wang.testapp2.TestActivity4"
android:orientation="vertical">

<RatingBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:numStars="7"
android:rating="3.5"/>
<!--//android:isIndicator="true"-->

</LinearLayout>


RatingBar



小结:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: