I have two RadioButtons in RadioGroup. What I want: if first RadioButton ischecked to display method one and second RadioButton ischecked to dispaly method two.
How to do it? 
public void onRadioButtonClicked (View view) {
    boolean checked = ((RadioButton) view).isChecked();
    switch (view.getId()) {
        case R.id.radio_button_equal_payment_principal:
            if (checked) {
            "display method PaymentPrincipal"   
            }
            break;
        case R.id.radio_button_equal_payment_total:
            if (checked) {
          "display method PaymentTotal"
            }
            break;
    }
    return ;
}
 
     
     
    