<CheckBox
android:id="@+id/pia"
android:layout_weight="2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="#87CEFA"
android:textSize="16dp"
/>
alumni = cursor.getString(cursor.getColumnIndex("IsAlumni"));
foreigner = cursor.getString(cursor.getColumnIndex("IsForiegner"));
if (alumni.equals("YES")){
Alumni.setChecked(true); }
if (foreigner.equals("YES"))
{
Foreigner.setChecked(true);
}
}
here is the classenter code here
s in which i need to display checkbox checked if retrieved value from sqlite database is true and checkbox will remain false if sqlite saved value is false for checkbox....i had done this but the problem comes when end user click on checkbox.. checkbox triggers which i don't want ....
Aucun commentaire:
Enregistrer un commentaire