Android/Animation
Listview Animation
hoonihoon
2014. 3. 3. 15:26
/res/anim/listview_anim.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <? xml version = "1.0" encoding = "utf-8" ?> android:interpolator = "@android:anim/accelerate_decelerate_interpolator" > < translate android:fromYDelta = "-100%" android:toYDelta = "0" android:duration = "300" > </ translate > < alpha android:fromAlpha = "0.0" android:toAlpha = "1.0" android:duration = "600" > </ alpha > </ set > |
/res/anim/listview_anim_control.xml
1 2 3 4 5 6 | <? xml version = "1.0" encoding = "utf-8" ?> android:delay = "20%" android:animationOrder = "normal" android:animation = "@anim/listview_anim" > </ layoutAnimation > |
/res/layout/listview_layout.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <? xml version = "1.0" encoding = "utf-8" ?> android:layout_width = "match_parent" android:layout_height = "wrap_content" android:background = "#ff000000" > < ListView android:id = "@+id/list1" android:layout_width = "match_parent" android:layout_height = "wrap_content" android:divider = "@color/list_divider" android:dividerHeight = "1dp" android:smoothScrollbar = "true" android:fastScrollEnabled = "true" android:persistentDrawingCache = "animation|scrolling" android:layoutAnimation = "@anim/listview_anim_control" /> </ LinearLayout >
|
출저: 옥수수농장 http://ocsoosoo.tistory.com/117