Code example for RadioButton

Methods: getText

0
 
	private OnClickListener radio_listener = new OnClickListener() {
		public void onClick(View v) { 
			// Perform action on clicks 
			RadioButton rb = (RadioButton) v; 
			Toast.makeText(HelloFormStuff.this, rb.getText(), 
					Toast.LENGTH_SHORT).show(); 
		} 
	}; 
}