public void setActiveView ( View v , int position ) { final View oldView = mActiveView ; mActiveView = v ; mActivePosition = position ; if ( mAllowIndicatorAnimation && oldView != null ) { startAnimatingIndicator ( ) ; } invalidate ( ) ; }
Set the active view . If the mdActiveIndicator attribute is set this View will have the indicator drawn next to it .