未加载出真正数据时的显示界面 LoaderViewLibrary

码农软件 · 软件分类 · Android UI 组件 · 2019-04-24 09:28:44

软件介绍

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" />

本文地址:https://www.codercto.com/soft/d/4266.html

动画的时间掌握

动画的时间掌握

哈罗德•威特克、约翰•哈拉斯 / 中国电影出版社 / 2012-7-1 / 38.00元

动画的时间掌握(修订版),ISBN:9787106035334,作者:(英)哈罗德·威特克 等著一起来看看 《动画的时间掌握》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具