You can try this. Your gridview has the following attribute in your layout file
android:layoutAnimation="@anim/layout_grid_right_to_left"
Create an anim folder in which you add layout_grid_right_to_left.xml with kotents
<gridLayoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" android:columnDelay="0.5" android:directionPriority="row" android:direction="right_to_left" android:animation="@anim/fade" />
Also add fade.xml to the same anim folder with the contents
<alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="@android:integer/config_longAnimTime" />
This is for your reference only. Feel free to add / remove attributes matching your requirements / requirements.
VikramV
source share