Tag Archives: checkbox

Android Widget – CheckBox

android

In Android, you can use “android.widget.CheckBox” class to render a checkbox. In this tutorial, we show you how to create 3 checkboxes in XML file, and demonstrates the use of listener to check the checkbox state – checked or unchecked. Open “your.xml” file, just add add 3 “CheckBox” and a button, inside the LinearLayout. <!--?xml version="1.0" encoding="utf-8"?--> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" ... Read More »