public void setCurrentItem ( int position ) { if ( mSelectedPosition != position ) { CheckedTextView tv = getTabView ( mSelectedPosition ) ; if ( tv != null ) tv . setChecked ( false ) ; } mSelectedPosition = position ; CheckedTextView tv = getTabView ( mSelectedPosition ) ; if ( tv != null ) tv . setChecked ( true ) ; animateToTab ( position ) ; }
Set the current page of this TabPageIndicator .