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
2
votes
1 answer

how can i get Values from dynamically created andorid TableRow?

How can i get the data from the Table Row on the button Click Event from the selected Radio Button. How i can set the Radio Group in a Radio button also when i write rg.addView(rb); My Android Application is Closed Unfortunately. My XML File…
2
votes
2 answers

How to save previous selected radio button state and also always in first selected state when application exit and launched?

When I click a button, it displays pop up dialog which has five radio buttons. Now requirements are When I launch and click button,pop up dialog displays initially with first radio button which should be in checked state while others are in…
Shadow
  • 6,864
  • 6
  • 44
  • 93
2
votes
0 answers

Why is onCheckedChanged not responding?

I have so far the following code for that allows me to set a value to a textview when I click between toggle buttons that are grouped in a radiogroup. For some reason, it seems like the OnCheckedChanged does not get called. Is this the appproach for…
2
votes
2 answers

How to make radiobutton button and text inline

I'm using custom radiobutton . this is the image of my current radiobutton . as you can see , the button is much lower then the text . How can I make them inline ? this is the drawable xml :
mohsen
  • 451
  • 2
  • 6
  • 15
2
votes
4 answers

Get values from multiple RadioGroups

I am creating an activity which contains 7 RadioGroups each with 5 RadioButtons. My problem is that I am getting selected index of only one RadioGroup (lvl_mon) and the other 6 are returning -1 however they are selected. My code is : lvl_mon =…
Shahzeb
  • 3,696
  • 4
  • 28
  • 47
2
votes
0 answers

RadioButton with WebView for displaying Maths Formula using MathJax

I've done code to display maths formula in TextView with the use of following code. webView.loadDataWithBaseURL("http://bar/", "