Code example for RadioButton

Methods: setOnClickListener

0
				maleSelected(); 
			} 
 
        }); 
         
        femaleButton.setOnClickListener(new OnClickListener() {
			 
			@Override 
			public void onClick(View v) {
				femaleSelected(); 
			} 
		}); 
         
        salutationsSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
 
			@Override 
			public void onItemSelected(AdapterView<?> parent, View view,
					int position, long id) {
				 
				setSalutationIndex(position);
			}