未加载出真正数据时的显示界面 LoaderViewLibrary
- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/elye/loaderviewlibrary
- 软件文档: https://github.com/elye/loaderviewlibrary/blob/master/README.md
- 官方下载: https://github.com/elye/loaderviewlibrary/archive/master.zip
软件介绍
LoaderViewLibrary,一个用于在等待文字和图片加载时显示加载动画的库。
运行效果:
示例代码:
在布局文件中定义TextView的加载页面
<com.elyeproj.loaderviewlibrary.LoaderTextView android:layout_width="match_parent" android:layout_height="wrap_content" />
在布局文件中定义ImageView的加载页面
<com.elyeproj.loaderviewlibrary.LoaderImageView android:layout_width="100dp" android:layout_height="100dp" />
用width_weight定义TextView的宽度百分比用于显示加载动画
<com.elyeproj.loaderviewlibrary.LoaderTextView android:layout_width="match_parent" android:layout_height="wrap_content" app:width_weight="0.4" />
用height_weight定义TextView的高度百分比用于显示加载动画
<com.elyeproj.loaderviewlibrary.LoaderTextView android:layout_width="match_parent" android:layout_height="wrap_content" app:height_weight="0.8" />
用use_gradient定义TextView或ImageView的梯度用于显示加载动画
<com.elyeproj.loaderviewlibrary.LoaderTextView android:layout_width="match_parent" android:layout_height="wrap_content" app:use_gradient="true" />
Programming Collective Intelligence
Toby Segaran / O'Reilly Media / 2007-8-26 / USD 39.99
Want to tap the power behind search rankings, product recommendations, social bookmarking, and online matchmaking? This fascinating book demonstrates how you can build Web 2.0 applications to mine the......一起来看看 《Programming Collective Intelligence》 这本书的介绍吧!
