Android之ProgressBar、SeekBar、RatingBar
来源:互联网 发布:手机云客通是什么软件 编辑:程序博客网 时间:2024/04/28 19:34
ProgressBar、SeekBar、RatingBar是几种常用的进度显示组件。下面做简单描述:
ProgressBar:
<ProgressBar android:id="@+id/mypro" style="@android:style/Widget.ProgressBar.Inverse" //指定风格(旋转) android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminateDrawable="@drawable/myprogress"//指定自定义的样式,见下 /> <ProgressBar android:id="@+id/pro" style="@android:style/Widget.ProgressBar.Horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:max="100" />//指定最大值
自定义的样式
<?xml version="1.0" encoding="utf-8"?><rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/process" android:fromDegrees="0" android:pivotX="50%"//旋转的位置 android:pivotY="50%" android:toDegrees="360" ></rotate>
SeekBar:可拖拉的进度条
<SeekBar android:id="@+id/seek" android:layout_width="match_parent" android:layout_height="wrap_content" android:max="255" android:thumb="@drawable/ic_launcher" />//定义拖拉的按钮图标
RatingBar:星型进度条
<RatingBar android:id="@+id/rb" android:layout_width="wrap_content" android:layout_height="wrap_content" android:max="200" android:numStars="5"//指定星星的个数 android:progress="60"//指定初始状态 android:stepSize="0.5" />//指定步长(半颗星),与progress相互影响
- Android之ProgressBar、SeekBar、RatingBar
- Android UI详解之SeekBar、ProgressBar和RatingBar
- Android之ProgressBar及其子类SeekBar和RatingBar(一)
- Android阶段学习笔记7.22 之 ProgressBar SeekBar RatingBar
- android:progressBar/seekBar/ratingBar学习记录
- android *** Layout 11 ProgressBar && RatingBar && SeekBar
- Android基础控件 - ProgressBar、SeekBar和RatingBar
- ProgressBar +SeekBar +RatingBar
- ProgressBar、SeekBar、RatingBar
- android之SeekBar和RatingBar
- Android之ProgressBar及其子类SeekBar和RatingBar的使用(二)
- 【Android 初学】8、进度条(ProgressBar、SeekBar、RatingBar)
- Android应用的界面编程:ProgressBar及其子类[SeekBar、RatingBar]
- 深入了解Android进度条——ProgressBar,SeekBar和RatingBar
- 深入了解Android进度条——ProgressBar,SeekBar和RatingBar
- Android之SeekBar与RatingBar简单实例
- Android学习路之SeekBar&RatingBar
- android开发之seekBar与ratingBar
- 在octopress中添加语法高亮
- VISUAL C++多媒体设计及图形、图像处理
- Five Ways to Break Through the Glass Ceiling
- NYOJ练习题 下三角矩形 (模拟)
- 解决算法问题的五种通用方法
- Android之ProgressBar、SeekBar、RatingBar
- android native c java进行本地socket通信----java服务端 C客户端
- c++多态
- Drink Lean from the Source
- 【转】EXT文件系统误删除数据恢复指南
- 杭电ACM 1003题
- php获取用户ip地理位置利用淘宝IP库
- java网络编程
- 矢量图像是小于位图图像