You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int checkedRadioButtonId = radioGroup.getCheckedRadioButtonId();
if (checkedRadioButtonId == -1) {
// No item selected
}
else{
if (checkedRadioButtonId == R.id.radio_button1) {
// Do something with the button
}
}
If I create a segmented control with 3 radiobuttons?. How can I check what box is selected?
if android:id="@+id/button1" is selected = do this
if android:id="@+id/button2" is selected = do that
Tips?
The text was updated successfully, but these errors were encountered: