Questions tagged [android-radiogroup]

This class is used to create a multiple-exclusion scope for a set of radio buttons. Checking one radio button that belongs to a radio group unchecks any previously checked radio button within the same group.

This class is used to create a multiple-exclusion scope for a set of radio buttons. Checking one radio button that belongs to a radio group unchecks any previously checked radio button within the same group.

Intially, all of the radio buttons are unchecked. While it is not possible to uncheck a particular radio button, the radio group can be cleared to remove the checked state.

The selection is identified by the unique id of the radio button as defined in the XML layout file.

XML Attributes

See RadioGroup Attributes, LinearLayout Attributes, ViewGroup Attributes, View Attributes

Useful links

315 questions
3
votes
1 answer

How to reset Spinner value to "Select by something" based on Radio Button checked

I have Two Radio Buttons along with Two Spinner, both are depend on another one. E.g for if I clicked Radio Button1 means Spinner visibility hidden. same for opposite. View and Hide is working, The Problem is, If i choose first Radio Button and…
Karthi
  • 528
  • 1
  • 5
  • 16
3
votes
1 answer

RadioButton not displaying

There're 2 RadioButtons in my application. They are both displayed in xml in AndroidStudio, but when I run the app on the phone, they disappear. It's not because of their positioning or some random function - for the sake of testing I placed another…
3
votes
1 answer

RadioButtons and text invisible on device

I'm using Android Studio and I have an app with a radio group of 4 buttons in my project, wich are used to pick an answer from my database. The buttons are invisible on the device but can still click them as they show up a green color when clicked.…
james
  • 157
  • 1
  • 2
  • 11
3
votes
1 answer

Change the Color of RadioButton When Clicked

I have a RadioGroup having 3 Radio Buttons. By default , when I click the radio button, it turns Blue. I need to change the color, say , when I click the first one, it should turn to Yellow, the 2nd one Blue and the 3rd one to Green. I have seen…
Aleena
  • 273
  • 4
  • 12
3
votes
0 answers

Conflict with Android RadioGroup and tabular layout

I am working on a GUI that is defined by data from a webservice. One aspect is that I have a table structure of 2 columns and n rows. In the left column there are RadioButtons, in the right column EditText widgets. All the RadioButtons are logically…
2
votes
1 answer

Failed to resolve: com.github.worker8:RadioGroupPlus:v1.0.1

I am trying to build existing project in android studio 3.2.1 and I am using com.github.worker8:RadioGroupPlus:v1.0.1 this dependency in the project though it was working in android studio 2.1 and now when I am building it in android studio 3.2.1…
2
votes
2 answers

Change background for radio button programatically

I have a RadioGroup with two RadioButtons. I want to change the color of them programmatically when they are disabled.
2
votes
0 answers

RadioGroup data binding and dynamic responses

I would like to create an Android RadioGroup with data driven/dynamic RadioButtons. The String values to be created as RadioButtons and the selected response would utilize data binding. Ideally this would function similar to the Spinner widget,…
2
votes
1 answer

getting the focus of the radio button in the radio group

In my code, I use radio group with radio buttons. I want to be able to check the radio buttons with the help of d-pad/ handset. I'm unable to get the focus of individual radio buttons. I tried to do the…
2
votes
1 answer

Android AppCompatRadioButton circle not shown

i use this code for make new radio button and add it to radioGroup RadioButton buttonh = new RadioButton(getApplicationContext()); RadioGroup.LayoutParams params_rb = new RadioGroup.LayoutParams( …
Mohamed Mohamed
  • 379
  • 1
  • 5
  • 12
2
votes
3 answers

RadioGroup Check(id) not triggering setOnCheckedChangeListener in android

I am having a radiogroup and added radio buttons dynamically to it. I am using radiogroup.check(id) for selecting the radiobutton inside Radiogroup. v = new RadioGroup(ctx); int count = 0; for (String Str : valueStr.get(Position)) { RadioButton…
Anand Asir
  • 309
  • 3
  • 13
2
votes
2 answers

Android RadioButton Confirm Selection

In my Android Application it's required to give a notification(warning) message before user change Radio Group Selection. Basically I am trying to give a dialog message (that have warning message and YES/NO buttons to confirm change) when user click…
JibW
  • 4,538
  • 17
  • 66
  • 101
2
votes
2 answers

Using viewpager with radiogroup to switch between fragments

I have a viewpager with swipeable fragments and also a radiogroup that shows which view is selected. When I start the application, the first radiobutton is not selected, it is only selected when I swipe another view and get back. I am a beginner, so…
2
votes
2 answers

Making Android RadioGroup Scrollable inside a tabhost

I have a TabActivity which the layout file is the following,I have the tab options in the radiogroup,I want to set size of the radio buttons according to the display size and make the radiogroup scrollable.
2
votes
2 answers

Android - RadioGroup's first button becomes unselectable after clearCheck() and rotate

I'm having problems with RadioGroups clearCheck method and rotating my app. I think it might be a Google issue? I have a three button radio group that when launched has the first item selected by default in xml. My problem is, I have a button…
Ben987654
  • 3,280
  • 4
  • 27
  • 50
1 2
3
20 21