Hi,

I had a problem on a listview to scroll the items with the up / down
keys
(the selected item gets invisible or out of screen). My solution for
that
problem was:
..
public void onItemSelected(AdapterView parent, View v, int position,
long id) {
        // adjust visible state of the item if necessary
        Rect r = new Rect();
        v.getHitRect(r);
        getListView().requestRectangleOnScreen(r);
  ...
}
..

--
CU
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to