How I Can Have Behavior Radiogroup Singlechoice For 2 Or More Checkbox On Android?(at Here For 2 Checkbox ,specially)
Hello stackoverflow friends. I am new by android and I have a simple question that bothers me! I have 2 CheckBox(CheckBoxAutomat and CheckBoxManual for example) . I want have like
Solution 1:
I asked this question because I didnt like the defualt style of checkoboxes,while I needed radibutton surely.So I put radioGroup on my app and then change android:button with a checkbox_selector(with my favorite pictures ) which I created it. a cb_selector like this :
<?xml version="1.0" encoding="utf-8"?><selectorxmlns:android="http://schemas.android.com/apk/res/android"><itemandroid:state_checked="true"android:drawable="@drawable/checked2" /><itemandroid:state_checked="false"android:drawable="@drawable/unchecked2" /></selector>
this must write in a xml file in drawable forlder. then i write @drawable/cb_selector in Button property for each radiobutton in my radioGroup.
Post a Comment for "How I Can Have Behavior Radiogroup Singlechoice For 2 Or More Checkbox On Android?(at Here For 2 Checkbox ,specially)"