實現RecyclerView項目動畫:RecyclerViewItemAnimators
這個Android項目為在RecyclerView
中的item views提供簡單的動畫。其代碼克隆自DefaultItemAnimator
,由于Google提供的自動定義動畫。
特性
SlideInOutLeftItemAnimator : which applies a slide in/out from/to the left animation
SlideInOutRightItemAnimator : which applies a slide in/out from/to the right animation
SlideInOutTopItemAnimator : which applies a slide in/out from/to the top animation
SlideInOutBottomItemAnimator : which applies a slide in/out from/to the bottom animation
ScaleInOutItemAnimator : which applies a scale animation
SlideScaleInOutRightItemAnimator : which applies a scale animation with a slide in/out from/to the right animation
Quick example:
mRecyclerView.setItemAnimator(new SlideInOutLeftItemAnimator(mRecyclerView));
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!