ContentLoadingProgressBar
来源:互联网 发布:联通 电信哪个4g网络好 编辑:程序博客网 时间:2024/06/01 07:25
Android5.0之后推出一系列的新组件 ContentLoadingProgressBar 也是其中一个
java.lang.Object ↳android.view.View ↳android.widget.ProgressBar ↳android.support.v4.widget.ContentLoadingProgressBar
从层级关系可以看出他是直接继承ProgressBar的父类。在ProgressBar的基础上衍生了自己的共有方法
(1)contentLoadingProgressBar.hide()官方给出的解释 Hide the progress view if it is visible.
(2)contentLoadingProgressBar.show() Show the progress view after waiting for a minimum delay.
(3)contentLoadingProgressBar.onAttachedToWindow(); This is called when the view is attached to a window.
(4)contentLoadingProgressBar.onDetachedFromWindow() This is called when the view is detached from a window.
等等。在progressbar的基础上优化了好多。他的布局也是很简单。
- <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:orientation="vertical" >
- <android.support.v4.widget.ContentLoadingProgressBar
- android:id="@+id/progress"
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- </LinearLayout>
0 0
- ContentLoadingProgressBar
- Android_UI:ProgressBar + ContentLoadingProgressBar
- poj3469(最小割)
- Oracle select语句执行顺序
- Nginx配置文件详细说明
- 随着窗口大小的改变调整控件的位置和大小
- 浅谈 Android BLE蓝牙
- ContentLoadingProgressBar
- 存储过程的简单使用
- Codeforces 549G Happy Line [贪心] [数学]
- 第二章html窗口间关联
- 动态闪烁按钮ShineButton的用法
- nginx 安装、使用
- SQL 2008执行语句遇到内存不足的案例(error 701)之一
- Oracle错误——ORA-03113:通信通道的文件结尾 解决办法
- windows环境下的dryrun使用教程,轻松预览github的开源项目