android 项目学习随笔十(自定义ProgressBar)
来源:互联网 发布:知行青年网 编辑:程序博客网 时间:2024/06/06 04:39
android:innerRadius 内部半径
android:thickness 厚度
gradient 渐变
android:useLevel="false" 取掉控件自带旋转效果
android:type="sweep" 渐变模式
rotate 旋转
android:fromDegrees="0" 起始角度 android:pivotX="50%" 基于自身中心位置旋转 android:pivotY="50%" android:toDegrees="360" 终止角度
<?xml version="1.0" encoding="utf-8"?><rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="0" android:pivotX="50%" android:pivotY="50%" android:toDegrees="360" > <shape android:innerRadius="15dp" android:shape="ring" android:thickness="3dp" android:useLevel="false" > <gradient android:centerColor="#5f00" android:endColor="#fff" android:startColor="#f00" android:type="sweep" /> </shape></rotate>
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingBottom="10dp" android:paddingLeft="10dp" android:paddingTop="10dp" > <ImageView android:id="@+id/iv_arrow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:src="@drawable/common_listview_headview_red_arrow" /> <ProgressBar android:id="@+id/pb_loading" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:visibility="invisible" android:indeterminateDrawable="@drawable/custom_progress" /> </FrameLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" > <TextView android:id="@+id/tv_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="下拉刷新" android:textColor="#f00" android:textSize="17sp" /> <TextView android:id="@+id/tv_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:text="2015-08-12 14:45" android:textColor="#9e9e9e" android:textSize="15sp" /> </LinearLayout></LinearLayout>
0 0
- android 项目学习随笔十(自定义ProgressBar)
- android 项目学习随笔二十(屏幕适配)
- Android 自定义学习(5)自定义Progressbar
- Android自定义View(ProgressBar)
- android 项目学习随笔一(闪屏 )
- android 项目学习随笔三(Fragment )
- android 项目学习随笔十四(WebView)
- android 项目学习随笔十九(MD5)
- Android学习之自定义进度条ProgressBar
- android 学习随笔二十(多媒体编程 )
- 【ProgressBar】Android 自定义ProgressBar集锦
- android 使用代码方式创建自定义progressBar——自定义控件学习(六)
- android 学习随笔二十九(自定义监听 )
- (Android Studio)自定义 ProgressBar(一)
- (Android Studio)自定义 ProgressBar (二)
- Android ProgressBar 自定义样式(一)
- Android自定义进度条(ProgressBar)的问题
- Android ProgressBar 自定义样式(一)
- android 项目学习随笔八(xUtils的BitmapUtils模块)
- WebStorm IDE
- android 项目学习随笔九(ListView加头布局)
- 如何才能把word转换成pdf文件
- 十进制字符串转换成十六进制字符串
- android 项目学习随笔十(自定义ProgressBar)
- ECC系统发送IDoc物料主数据(MATMAS)到周边系统的配置步骤
- android 项目学习随笔十一(ListView下拉刷新提示)
- JDBC-MYSQL-存储函数和存储过程的调用
- Ubuntu的wired Networks 变灰色,无法连接网络
- android 项目学习随笔十二(ListView加脚布局)
- android 项目学习随笔十三(ListView实现ITEM点击事件)
- android 项目学习随笔十四(WebView)
- android 项目学习随笔十五(ShareSDK开放平台)