radio-group

Android dynamic RadioGroup/RadioButtons as flat buttons

回眸只為那壹抹淺笑 提交于 2019-12-30 18:56:50
问题 this is a similar issue to what is mentioned in a related post but I thought it was different enough to get its own question. Here it goes: I have been able to get the "radio circle" to disappear no problem when declaring the radio buttons in xml by setting the button attribute of the radio button to null like this: <RadioButton android:id="@+id/radioButton1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="One" android:background="@drawable/radio_button

LibreOffice: how to make a Radio Button group

巧了我就是萌 提交于 2019-12-25 16:19:10
问题 In a LibreOffice Writer document, how do I make a radio button group? I cannot get my buttons to "group". I'm using LibreOffice 5.3.4.2 (x64). I place multiple Radio buttons controls in my Writer document. I select two buttons and, in the controls' Properties, I assign them the same Group Name. I select two other buttons and assign them their own, same Group Name. Example : "Do you like dogs? O Yes, O No." (These would be the " Dogs " group) "Do you hate cats? O Yes, O No." (These would be

Strange behaviour of programatically created RadioGroup

别等时光非礼了梦想. 提交于 2019-12-25 11:58:12
问题 I am programatically adding RadioButtons to a pre-existing but empty RadioGroup with the following code. RadioGroup currencySettingRadioGroup = (RadioGroup) currency_settings_dialog.findViewById(R.id.rg_currency_symbol); currencySettingRadioGroup.removeAllViews(); RadioButton rb_none = new RadioButton(this); // Add the 'None' option at the start rb_none.setText("None"); if (v_currency_symbol.equals("")) rb_none.setChecked(true); currencySettingRadioGroup.addView(rb_none,0); String[] currency

How to put constrains on maximum selectable CheckBoxes via RadioButtons in JavaFX?

扶醉桌前 提交于 2019-12-24 04:17:28
问题 Please have a look at the picture below, you will understand the layout of my application. I would like to have the possibility to dynamically choose how many CheckBox (which enable the drop down menus) are selectable (a fixed number). And I want to achieve this with those 3 RadioButton . In the vertical Mode all 4 CheckBox must be selected (not less). In the Hybrid mode only 2 CheckBox must be available (not more and not less). In the Horizontal mode only 1 CheckBox must be selected (not

Android disable radio group in xml

南笙酒味 提交于 2019-12-23 18:29:33
问题 In my android application, I need to disable radio group in xml layout. I searched, but I found only through pro-grammatically not in xml layout. My code is here <RadioGroup android:id="@+id/menu1" android:layout_width="80dp" android:layout_height="wrap_content" android:layout_x="170dp" android:layout_y="100dp" > <RadioButton android:id="@+id/radioButton1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Yes" /> <RadioButton android:id="@+id/radioButton2"

Changing background color with Radio Buttons Android

女生的网名这么多〃 提交于 2019-12-23 16:28:34
问题 I am attempting to change the background of a tab of my application by selecting a Radio Button from a RadioGroup, however I am not sure how to go about this. So far I have Favs.java: import android.app.Activity; import android.os.Bundle; public class Favs extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.favs); } } which points to this .xml file -> favs.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout

How to store and retrieve the RadioGroup Radio Button and CheckBox of Ribbon Control from Winforms Devexpress to MS Access Database?

血红的双手。 提交于 2019-12-23 05:25:38
问题 In my form I used Ribbon control in that RadioGroup is used for calculations. Now I need to store content of form and want to retrieve it back if I click in Gridview. I can able to store and retrieve textedit, lookup edit and checkedit outside Ribbon Control. How to store and retrieve the RadioGroup from Ribbon Control ?? example for storing CheckBox I used this code bool temp = barCheckItem1.Checked; In Access Database used "Yes/No" Data Type to store. For retrieve used this code

NullPointerException in RadioGroup.setOnCheckedChangeListener in APIS 15 & 16

徘徊边缘 提交于 2019-12-23 03:39:10
问题 Actually, I've to ask you a question about NPE in setOnCheckedChangeListener of RadioGroup. I've tested this code in APIs from 15 to 23, and only crashes is APIs 15 & 16. At first, i dont need to solve the NPE, i did it. I need to know why android assigns a negative value to radioButton ID, which causes NULL return in 'group.findViewById'. Here we've the code: private List<Question> listItems; private Question getItem(int position) { return listItems.get(position); } @Override public

Javascript Radiobutton Group Validation

时间秒杀一切 提交于 2019-12-22 00:24:25
问题 I would like your help to develop a javascript function to validate if one of the following radiobutton group (IDType) is selected and which value is checked and view error message in (ValidationError) division in case no radio button selected ?? <td> <div> <span> <input type="radio" name="IDType" id="IDType" value="IDtype1"/> ID Type 1 <input type="radio" name="IDType" id="IDType" value="IDtype2"/> ID Type 2 </span> <div id="ValidationError" name="ValidationError">   </div> </div> </td>

binding radiobuttons group to a property in WPF

北城余情 提交于 2019-12-20 10:24:58
问题 Let's imagine that I have: <RadioButton GroupName="Group1" IsChecked="{Binding Path=RadioButton1IsChecked}" /> <RadioButton GroupName="Group1" IsChecked="{Binding Path=RadioButton2IsChecked}" /> And then in my data source class I have: public bool RadioButton1IsChecked { get; set; } public bool RadioButton2IsChecked { get; set; } public enum RadioButtons { RadioButton1, RadioButton2, None } public RadioButtons SelectedRadioButton { get { if (this.RadioButtonIsChecked) return RadioButtons