@ Override public void onNextItemAppear ( View view ) { View descriptionLayout = view . findViewById ( R . id . description_layout ) ; if ( descriptionLayout != null ) { float layoutY = ViewHelper . getY ( descriptionLayout ) ; view . findViewById ( R . id . description_layout ) . setVisibility ( View . VISIBLE ) ; ValueAnimator animator = ObjectAnimator . ofFloat ( descriptionLayout , "y" , layoutY + descriptionLayout . getHeight ( ) , layoutY ) . setDuration ( 500 ) ; animator . start ( ) ; } }
When next item show in ViewPagerEx let s make an animation to show the description layout .