LoadingProgressBar(类似SwipeRefreshLayout的加载进度指示器)
2016-03-22 10:23
776 查看
额,图片不能上传??? 郁闷..这里只说android studio怎么弄. eclipse 自己找包吧!!!介绍:MaterialLoadingProgressBarprovide a styled ProgressBar which looks like SwipeRefreshLayout's loading indicator(support-v4 v21+)MaterialLoadingProgressBar提供风格ProgressBar看起来像SwipeRefreshLayout加载的指示器
构建:
compile 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
XML的属性:
mlpb_progress_color : 旋转颜色
mlpb_progress_stoke_width: 旋转线的宽度
mlpb_progress_text_visibility: 进度值是否显示
mlpb_show_arrow: 是否显示带有进度箭头
mlpb_enable_circle_background: 是否需要背景java:
setProgress: 设置进度值
setColorSchemeResources: 设置旋转线颜色
一般用颜色
(android.R.color.holo_green_light, android.R.color.holo_orange_light,
android.R.color.holo_red_light, android.R.color.holo_blue_light)
xml布局:
<com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBarandroid:id="@+id/progress1"android:layout_width="36dp"android:layout_height="36dp"app:mlpb_progress_color="#566da9"app:mlpb_progress_stoke_width="3dp"/><com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBarandroid:id="@+id/progressBar"app:mlpb_show_arrow="true"app:mlpb_arrow_height="5dp"app:mlpb_arrow_width="10dp"app:mlpb_enable_circle_background="true"app:mlpb_progress_stoke_width="5dp"app:mlpb_progress_text_visibility="visible"android:layout_width="60dp"android:layout_height="60dp"/>源码链接
相关文章推荐
- 使用C++实现JNI接口需要注意的事项
- Android IPC进程间通讯机制
- Android Manifest 用法
- [转载]Activity中ConfigChanges属性的用法
- Android之获取手机上的图片和视频缩略图thumbnails
- Android之使用Http协议实现文件上传功能
- Android学习笔记(二九):嵌入浏览器
- android string.xml文件中的整型和string型代替
- i-jetty环境搭配与编译
- android之定时器AlarmManager
- android wifi 无线调试
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- android 代码实现控件之间的间距
- android FragmentPagerAdapter的“标准”配置
- Android"解决"onTouch和onClick的冲突问题
- android:installLocation简析
- android searchView的关闭事件
- SourceProvider.getJniDirectories