Monday, February 21, 2011

set focus on any item of listview in android

I have a listview which contains textviews as its elements.

  1. Now i want the first item of the list to be automatically focused when i launch the application
  2. How can i set the focus on any item of the list when i click on the some other view for example a button?
From stackoverflow
  • ListView has a setSelected method that takes the index of the item in the list.

    sarvesh : Hi but selected listitem is same as focused listitem?

0 comments:

Post a Comment