android-radiogroup Questions

6

Solved

From my understanding, to determine if a checkbox is "clicked" and find if it's checked or not, code such as the following can be used: cb=(CheckBox)findViewById(R.id.chkBox1); cb.setOnCheckedCha...

8

Solved

I've created a radio button in radiogroup, but when I try running the apps all radio button can be selected all the time, and how to set only one radiobutton can be selected at one time? I'm using...
Slowpoke asked 19/5, 2016 at 3:39

1

I have a RadioGroup with dynamically added RadioButtons. In my Activity, I close the activity immediately after a RadioButton is selected. However, this leads to an artifact where two RadioButtons ...
Xylia asked 12/1, 2017 at 17:19

7

Solved

Is there a way to set the selected index of a RadioGroup in android, other than looping through the child radiobuttons and selecting checking the radio button at the selected index? Note: I am pop...
Scheld asked 23/3, 2012 at 16:2

6

Solved

I know this sound weird so here is the picture. It hold the correct value. The correct radiobutton is (partially) selected. All logic in the OnCheckedChangeListener is executed correctly. I'm co...
Interbreed asked 28/8, 2017 at 19:44

3

My RadioButtons in my RadioGroup are leaving a black checked circle after I uncheck them or click on another RadioButton in the group. How do I prevent this from happening? <RadioGroup android...
Madelynmademoiselle asked 11/5, 2020 at 20:8

6

Solved

I'm getting an Error while working with the following code Error: The specified child already has a parent you must call removeView on the child's parent first Anyone please help me in resolving ...
Broomcorn asked 12/11, 2013 at 12:33

4

Solved

I have Radio Group which appears left aligned on screen. How can i horizontally center the radio group. The TextView itself appears properly center-aligned horizontally. .... <LinearLayout ...
Aponte asked 13/5, 2015 at 5:28

5

Solved

I was searching over the internet for how to perform the new cool android data-binding over the RadioGroup and I didn't find a single blog post about it. Its a simple scenario, based on the radio...
Nedrud asked 10/9, 2016 at 14:45

3

Solved

I am having a recyclerview where each list item has a radiogroup with 4 radio buttons. How can I store the state of each radiogroup correctly. Here is my code. On scrolling up/down the states are ...
Charitacharitable asked 2/11, 2015 at 11:50

5

Solved

I am designing customize form programmatically where user can put a question and can add multiple options using radio buttons. I have taken RadioGroup and i am adding radio buttons in it. But while...
Stenography asked 18/2, 2014 at 11:31

2

Solved

i recently integrated butterknife in my android project, and now i am trying to use @OnCheckedChanged annotation for radiogroup. but getting error of not giving callback. So what is the right metho...
Juanitajuanne asked 9/5, 2017 at 12:25

3

I have a list view with a text and 3 radio button. If i select any radio button, and scroll the list the radio button gets un-selected. I am maintaining the ID of items for which radio button is se...
Claqueur asked 8/7, 2016 at 10:8

3

Solved

I have looked around and implemented some of the things that I have found in order to get the findViewById to work inside my Fragment. However, I get either the cannot resolve method findViewById o...

3

Solved

In my activity, I am creating a dynamic radiogroup. I have some questions and answers in Sqlite database, retrieving them in activity and then set in RadioGroup. This is working fine. But after tha...
Bolognese asked 12/3, 2015 at 8:3

1

Solved

I am making a quiz app in which I have a viewPager which has 15 pages in it having 1 question each and a submit button at the last page.Now I want to get the Maximum number of option selected among...

3

Any idea why this would crash my app when I select a radio button? I've imported android.widget.RadioGroup.OnCheckedChangeListener, and I've also tried new RadioGroup.OnCheckedChangeListener() ...
Jasmine asked 31/5, 2014 at 18:30

1

I am writing an application where I need to draw two radio button in equal horizontal space. That I achieved by set android:layout_weight="1" property for both of radio button. Now I need to displ...
Parochialism asked 3/11, 2014 at 8:7

0

I have a ListItem having a person name e.g. ABCD and a RadioGroup having two RadioButtons. In my bindView() when i click any of RadioButton, it should update the data whose name is ABCD. But its on...

1

Solved

I want to have a Customized Radio Group view. So i have created xml view as below <RadioGroup android:id="@+id/selectUserRadioBtnContainer" android:layout_width="match_parent" android:orient...
Trotman asked 13/5, 2014 at 6:48
1

© 2022 - 2024 — McMap. All rights reserved.