How to preserve scroll position in an ExpandableListView

后端 未结 4 502
走了就别回头了
走了就别回头了 2021-01-31 21:44

in my app I have a class derived from ExpandableListActivity. When I scroll the contents, and then change phone orientation or edit an item and then go back to the list, the ori

4条回答
  •  忘了有多久
    2021-01-31 22:30

    I found another way to do that works for me to maintain state. Here is the link.

    http://markmail.org/message/msesxums77bdoqnx#query:+page:1+mid:utmart4ob7flh3u7+state:results

    The summary is that you always have to set state, even if the convertView != null.

    I don't know the repercussions of always setting the state, but in my case it works perfectly.

提交回复
热议问题