public void fadeToLayer(int index){
  mTransitionState=TRANSITION_STARTING;
  Arrays.fill(mIsLayerOn,false);
  mIsLayerOn[index]=true;
  invalidateSelf();
}

public void fadeToLayer ( int index ) { mTransitionState = TRANSITION_STARTING ; Arrays . fill ( mIsLayerOn , false ) ; mIsLayerOn [ index ] = true ; invalidateSelf ( ) ; }
starts fading to the specified layer .
