I have a listview and i want when i select a row to stay selected
after googling i came to this solution:
@Override
protected void onListItemClick(ListView l, View v, int position, long
id) {
    // ... rest of the code
    v.setSelected(true);
}
I just manually set the selected view to stay selected. This works :).
The problem is that if i change some attribute ( for example
v.setBackgroundColor(Color.BLACK) ) the selected view no longer stays
selected.
Any ideas how to fix this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to