0

My problems is simply that i have a ListView and the items within that list are expandable.

There is a view that has visibility GONE, when i change visibility of the hidden item, and it's at the bottom of the screen, i need the list to scroll to show the hidden item.

How can i achieve that?

Ashfaque
  • 1,254
  • 1
  • 22
  • 38
elmorabea
  • 3,243
  • 1
  • 14
  • 20
  • Have you tried using an ExpandableListView? – WindsurferOak Mar 27 '14 at 14:45
  • What i need is a normal list, each item has 2 sections, a shown part and another part that can be hidden and shown. – elmorabea Mar 27 '14 at 15:55
  • If I understand correctly, you want to scroll to a specific item then? ListView has a several methods that can help with that: 1) ListView.smoothScrollToPosition(int position) 2) ListView.setSelection(int position) Take a look at these. – WindsurferOak Mar 27 '14 at 15:59
  • That's not it .. i'm already scrolled to that item .. but after showing the hidden section a part of the cell is lower than the bottom of the screen – elmorabea Mar 28 '14 at 15:37
  • I see. This answer may help: http://stackoverflow.com/questions/2312683/calculate-the-size-of-a-list-view-or-how-to-tell-it-to-fully-expand – WindsurferOak Mar 29 '14 at 19:26

0 Answers0