Questions tagged [android-radiobutton]

Use for the android.widget.RadioButton element. Radio buttons are normally used together in a RadioGroup.

Radio buttons allow the user to select one option from a set. You should use radio buttons for optional sets that are mutually exclusive if you think that the user needs to see all available options side-by-side.

Radio buttons are normally used together in a RadioGroup. When several radio buttons live inside a radio group, checking one radio button unchecks all the others.

Useful links

347 questions
0
votes
1 answer

differentiate check and click in radiobutton android

I am using RadioGroup with two radiobuttons in it. I want to show a a dialog popup with a button when a radiobutton is clicked but without checking the radiobutton and get it checked only when the button inside the dialog is pressed. Using…
0
votes
1 answer

Change wieght of RadioButtons with animation

I have the below code. I want to change the weight of radio buttons when a user clicks on this. I mean, when a user selects a radio button, change the weight of that to 2 and the weight of not selected radio button change to 1 and reverse. (the…
0
votes
1 answer

How to show the Radio Button icon on the left side in a Popup Menu group?

I have a Radio Button group in Popup Menu:
lannyf
  • 9,865
  • 12
  • 70
  • 152
0
votes
2 answers

I have two radio buttons where single selection is to be performed.But and on single row both radio buttons are getting selected

i have added an image of these issue after a solution provided where previous does not unselect and on scroll checked values disappearsI am trying to select one captain and one vice-captain from 11 players using two radio buttons which are in…
0
votes
0 answers

Android - Best way to manage variable RadioGroups inside RecyclerView

Let's say I have a RecyclerView which represents an application Form. It may have several fields for EditTexts, selectors, checkboxes, radios, etc. Because the RadioButtons need to be grouped into a RadioGroup in order to deselect the other radios…
0
votes
1 answer

How to set Radio button to navigate user based on activity

I am new to android programming. I want to set radio button on top of every activity to navigate user. So that it will help to user can understand which activity they are in. please anyone guide me.
Karthick Jai
  • 61
  • 1
  • 11
0
votes
2 answers

Reverse show / hide of layouts with OnCheckedChangeListener on a RadioButton

THE CODE For the checkout in my app, I let the user decide the payment method he wants to use by selecting it in a RadioButton Group:
KayD
  • 372
  • 5
  • 17
0
votes
2 answers

Recyclerview with two selectable RadioButtons

I am not adding any code since its just a simple recyclerview that I want to work with. So the recyclerview is inside a fragment and I am adding a some radio buttons. I want to make two of them selectable. I have set up everything with a simple…
0
votes
2 answers

Strange behaviour - Recyclerview onItemClick isn't working properly if Root Layout is there

Problem: I'm having a recyclerview, in adapter of that recyclerview, I have solely RadioButton without any parent layout like LinearLayout or RelativeLayout. This time onItemClick is working fine. If I will add parent layout like LinearLayout or…
0
votes
1 answer

Sending radio button data to next activity in Kotlin

In an android app I want to let the user check a radio button and depending on what the user checked I want it to change things in the next activity (e.g. hiding a button or change the text of a button). How am I doing this? I already found out how…
user11811799
0
votes
2 answers

How to get value from TextView and Radio button in RecyclerView on click Button?

How to get value in an array list from Textview and radio button in RecyclerView on click button when clicking on button then store in an array list please help me
0
votes
1 answer

How to get value in edittext from a Radio Groups in Popup Activity?

I am designing a registration form where I have one EditText field for Categories. This list of categories is opened as a radio group in separate Popup activity when we click in EditText field. It is working fine till popup. However, I am not…
0
votes
4 answers

How to put radio button on the editText

This is a gender check button.
eggham0518
  • 121
  • 1
  • 7
0
votes
1 answer

How to set checked radio button state . not using radio group

I have 2 fragments - Fragment A and Fragment B. In Fragment RadioButton is set on RecyclerView. When I have click on radio button and then go to Fragment B. After that when we move again on Fragment A then radio button is showing Unselected. I am…
0
votes
1 answer

RadioGroup on click fails

I have set up a radio group dynamically like this: In my XML I have:
Geoff
  • 6,277
  • 23
  • 87
  • 197