mcfly
- Forum posts: 286
Jun 3, 2011, 2:36:21 PM via Website
Jun 3, 2011 2:36:21 PM via Website
Hi all
i have a listview with some listitem. when i touch a listitem, the event is triggered and i can read the selected value -> ok.
but the listitem is not highlithed. Shouldn't that be handled be the listview ? how do I highlight the selected listitem ?
regards
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
String sWikiid=al.get(position).sWikiid;
l.setSelected(true);
i have a listview with some listitem. when i touch a listitem, the event is triggered and i can read the selected value -> ok.
but the listitem is not highlithed. Shouldn't that be handled be the listview ? how do I highlight the selected listitem ?
regards
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
String sWikiid=al.get(position).sWikiid;
l.setSelected(true);
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.