Tag Archives: CompoundButton

Listening to checkBox stateChange in Android

By | February 14, 2012

This is a simple example showing how to listen to checkbox in android. To check whether the checkbox is in on state or in off state just add a listener to the checkbox you want to listen. This is how we do this. ch.setOnCheckedChangeListener(new OnCheckedChangeListener() { }); This is the layout contaning a checkbox. This… Read More »

How to create a custom ListView in android?

By | October 13, 2011

Hello all….. In today’s tutorial I will show you how to create a custom listview in android. For that we need 3java files. One holding the ListView itself another a Model object that holds the data for the listview and the third one for the Adapter which extends the ArrayAdapter class for holding the model.… Read More »