Google Plus-style ListView lists are all the evil these days on Android due to the poor animation displayed when presenting data. When a user scrolls down, new elements come to life and, frankly, they look amazing up_from_bottom.xml
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="@android:anim/decelerate_interpolator"> <translate android:fromXDelta="0%" android:toXDelta="0%" android:fromYDelta="100%" android:toYDelta="0%" android:duration="400" /> </set>
Down from the top down_from_top.xml
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="@android:anim/decelerate_interpolator"> <translate android:fromXDelta="0%" android:toXDelta="0%" android:fromYDelta="-100%" android:toYDelta="0%" android:duration="400" /> </set>
In the list of class adapters
private int lastPosition = -1; @Override public View getView(int position, View convertView, ViewGroup parent) {
copied from http://kylewbanks.com/blog/Implementing-Google-Plus-Style-ListView-Animations-on-Android
Chaitu
source share