Code example for RadioButton

Methods: setOnCheckedChangeListener

0
		smCurrency = new SpinnerManager(this, (Spinner)findViewById(R.id.currency));
		smCurrency.getSpinner().setOnItemSelectedListener(this);
 
		radioButtonCredit = (RadioButton)findViewById(R.id.credit);
		radioButtonDebit = (RadioButton)findViewById(R.id.debit);
		radioButtonCredit.setOnCheckedChangeListener(this);
		radioButtonDebit.setOnCheckedChangeListener(this);
		textViewSign = (TextView)findViewById(R.id.sign);
		textViewDate = (TextView)findViewById(R.id.date);
		textViewDate.setOnClickListener(this);
		textViewTime = (TextView)findViewById(R.id.time);
		textViewTime.setOnClickListener(this);
		buttonToday = (Button)findViewById(R.id.button_today);
		buttonToday.setOnClickListener(this);
		textViewConvertedAmount = (TextView)findViewById(R.id.converted_amount);
		 
 
		// Set spinners content 
		Cursor c = null;
 
		Account dummyAccount = new Account();