Last active
July 26, 2017 18:04
-
-
Save patrick-elmquist/5db09644693480fd7c7598ecd0648c40 to your computer and use it in GitHub Desktop.
Enter animation demo: Apply a LayoutAnimation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int resId = R.anim.layout_animation_fall_down; | |
LayoutAnimationController animation = AnimationUtils.loadLayoutAnimation(ctx, resId); | |
recyclerview.setLayoutAnimation(animation); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.v7.widget.RecyclerView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layoutAnimation="@anim/layout_animation_fall_down" | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment