Code example for TextSwitcher

Methods: setText

0
	} 
 
private Runnable UpdateName = new Runnable() {
	   public void run() { 
		   try { 
				mSwitcher.setText(donators[index]); 
				if (index == donators.length-1) 
					index = 0; 
				else 
					index++; 
			} catch (Exception e) { 
				Log.d("X5 Settings", "Unexpected error: "+e.getMessage()); 
			} 
		   mHandler.postDelayed(UpdateName, 2000); 
	   } 
	}; 
	 
	@Override 
 protected void onDestroy() { 
		mHandler.removeCallbacks(UpdateName);
		super.onDestroy();