1
我有我的Android應用程序的列表視圖,我想在列表視圖的頂部做一個動畫,當用戶在滾動像instagram或twitter應用程序的一個。我將如何去做這件事。有沒有一種方法是當用戶滾動並且我正在考慮爲實際動畫使用frameanimation時調用的。您的活動如何使android listview刷新動畫?
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/favs_refresher"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<ListView
android:id="@+id/favs_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"/>
</android.support.v4.widget.SwipeRefreshLayout>
然後:
對不起,我剛剛發現這個http://stackoverflow.com/questions/4583484/how-to-implement-android-pull-to-refresh – user2581628