Android(安卓)ApiDemos示例解析(129):Views->Layout Animation->4. Randomize
16lz
2021-01-26
animationOrder: 枚举Layout中子View的顺序,可以为normal (正序),reverse(倒序),random(随机顺序)。上例为倒序显示ListView 中例表项。本例使用随机顺序显示GridView的图标项。
ayout_random_fade.xml 定义如下:
<layoutAnimation xmlns:android=”http://schemas.android.com/apk/res/android”
android:delay=”0.5″
android:animationOrder=”random”
android:animation=”@anim/fade” />
Layout Animation->4. Randomize_第1张图片" src="https://img.it610.com/image/info5/c50248a2f61842439376027a4d40a593.jpg" width="333" height="493" style="border:1px solid black;">
更多相关文章
- Android(安卓)Launcher3安装应用后,控制应用图标显示位置
- Systrace的工作原理及例子解读
- Android(安卓)lottie java.lang.IllegalStateException: Missing
- Android(安卓)USB Host与HID通讯
- Android(安卓)Material Design Snackbar Example
- 解决android模拟器太大,小屏幕无法完全显示的问题
- Android(安卓)调用系统地图(Google Map)并显示具体方位
- android 问题汇总系列之八
- Android导航栏ActionBar的详细分析