Code example for TextSwitcher

Methods: setText

0
 
    onSwitchText(null); 
  } 
 
  public void onSwitchText(View v) {
    mTextSwitcher.setText(TEXTS[mTextsPosition]);
    setNextPosition(); 
  } 
 
  private void setNextPosition() { 
    mTextsPosition = (mTextsPosition + 1) % TEXTS.length;
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE