I do not want my list view updated
when I look at the scroll list, it updates ...
I don't want this to happen ... what should I do
<ListView android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@id/edittxt_username"
android:scrollbars="vertical"
android:layout_marginBottom="0sp"
/>
okey edits my real need
am using the checkbox in my list "
final CheckBox chb = (CheckBox) v.findViewById (R.id.editcheckbox);
chb.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
if (chb.isChecked() == true) {
CheckedMessages.add(f);
} else if (chb.isChecked() == false) {
CheckedMessages.remove(f);
}
}
});`
Suppose there are 20 items in a list .. I check the first one. After scrolling, I see that the 6th element is checked ... again scrollling, I see that the 13th element is checked ... I could have this because of an update ... why the reason?
source
share