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 第二进度:颜色不同。
RatingBar
小结:
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
小结:
相关文章推荐
- tcp回射服务器程序处理僵死进程
- Css基本样式————表格
- jquery的Deferred--promise的解决方案
- LINUX 中的一些配置文件
- 关于两个"集合"相同的判断
- 加班-不错的文章
- jQuery分析(2) - $工厂函数分析
- Linux下让一个程序开机自动启动
- python基础之正则表达式
- Android基础知识:广播
- iOS开发之基础视图——UITextField
- 周SIR习得技巧点 - 如何将业务数据(EXCLE)导入到ORACLE数据库中
- UVA_563_Crimewave
- c++上机作业5
- jQuery.Form.js 的用法
- 第11周 输出点的坐标
- cnblogs.com用户体验
- 我的北航故事
- 1-(2)
- C++走向远洋——45(警察和厨师、UML)