Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

check box should like radio buttons in android

I have a requirement like check box should work like radio buttons.

I arranged check box programmatically with respect to array (if array size is 10, 10 check boxes are placed programmatically).

If one check box is checked others should be unchecked (should work like radio buttons).

After the check box is clicked the check box id should generate.

Please give me an idea.

Thanks, UdaySekhar

like image 293
user3386672 Avatar asked Oct 23 '25 04:10

user3386672


1 Answers

<RadioButton style="@android:style/Widget.CompoundButton.CheckBox" />`

This is how you can get the look of checkbox

like image 53
Android Sanaullah Avatar answered Oct 25 '25 17:10

Android Sanaullah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!