Code example for TextSwitcher

Methods: setText

0
        status.setText(mCounter+"/"+pageCount);
    } 
    private void updateText(){ 
    	if(mCounter==texts.length)
    		return; 
    	mSwitcher.setText(texts[mCounter]);
    } 
 
    public View makeView() {
        TextView t = new TextView(this);
        t.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL);
        t.setTextSize(16);
        return t;
    } 
    @Override 
    public void onSaveInstanceState(Bundle savedInstanceState) {
      savedInstanceState.putInt("counter", mCounter);
      super.onSaveInstanceState(savedInstanceState);
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE