About 542,000 results
Open links in new tab
  1. RadioButton in Android - GeeksforGeeks

    Jul 17, 2022 · An Android RadioButton is a bi-state button that can be either checked or unchecked. It functions similarly to a CheckBox, but with one key difference: once selected, a RadioButton cannot be unchecked by tapping it again.

  2. Add radio buttons to your app | Views | Android Developers

    Feb 11, 2025 · Radio buttons let the user select one option from a set of mutually exclusive options. Use radio buttons if the user needs to see all available options listed. If it's not necessary to show all options, use a spinner instead.

  3. How to Add Radio Buttons in an Android Application?

    Jan 25, 2025 · How to Create an Android App to Use Radio Buttons? This example will help in developing an Android App that creates Radio Buttons according to the above example: Step 1: First create a new Android Application. This will create an XML file “activity_main.xml” and a Java File “MainActivity.Java”.

  4. RadioGroup in Android - GeeksforGeeks

    Aug 18, 2022 · In Android RadioGroup is used to set radio buttons. If one radio button is selected within the RadioGroup, all other ones are automatically deselected. In this article, we will be discussing how to programmatically create a RadioGroup in Kotlin.

  5. How to set a radio button in Android - Stack Overflow

    Nov 9, 2010 · I have an app that uses radio buttons. The default for this button is set in the main.xml file, ie: android:id="@+id/rb_sat1E" android:checked="true" In the Java file I have: final RadioButton radio1 = (RadioButton)findViewById(R.id.rb_sat1E);

  6. Android Radio Buttons Example - Examples Java Code Geeks

    Dec 18, 2012 · In this tutorial we are going to see how to set up and display radio buttons with some options for the user as well as how to put them in a group. Furthermore, we are going to use a button that when it’s pressed, a message will be …

  7. RadioButton & RadioGroup Tutorial With Example In Android Studio

    Jun 25, 2019 · Below is the example of Radiobutton in Android where we display five radio buttons with background and other attributes. The radio buttons are used to select your favorite WWE superstar with one “submit” button. Below is the final output, download code and step by step explanation of tutorial: Download Code?

  8. RadioButton - Tpoint Tech - Java

    RadioButton is a two states button which is either checked or unchecked. If a single radio button is unchecked, we can click it to make checked radio button. Once a radio button is checked, it cannot be marked as unchecked by user. RadioButton is generally used with RadioGroup.

  9. Android RadioButton - W3schools

    Android RadioButton: RadioButton can be understood as a type of two-states button. Here, the two-states means that it can either be checked or unchecked. With a single click, we can convert an unchecked radio button to a checked radio button.

  10. java - Android getting value from selected radiobutton - Stack Overflow

    Aug 12, 2013 · How do I get the value of the RadioButton and display it in a Toast? This is my code: RadioGroup rg; @Override. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); RadioGroup rg = (RadioGroup) findViewById(R.id.radioGroup1); final String value =

  11. Some results have been removed