软件介绍
LoaderViewLibrary,一个用于在等待文字和图片加载时显示加载动画的库。
运行效果:
示例代码:
在布局文件中定义TextView的加载页面
android:layout_width="match_parent"
android:layout_height="wrap_content" />
在布局文件中定义ImageView的加载页面
android:layout_width="100dp"
android:layout_height="100dp" />
用width_weight定义TextView的宽度百分比用于显示加载动画
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:width_weight="0.4" />
用height_weight定义TextView的高度百分比用于显示加载动画
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:height_weight="0.8" />
用use_gradient定义TextView或ImageView的梯度用于显示加载动画
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:use_gradient="true" />