tjerkw / Android-SlideExpandableListView

A better ExpandableListView, with animated expandable views for each list item
Apache License 2.0
1.98k stars 741 forks source link

how to properly call method collapseLastOpen() ? #39

Closed songzhiyong closed 10 years ago

songzhiyong commented 11 years ago

when I call method collapseLastOpen() method when i click the item and start another activity,after come back,I come across this phenomenon?Can you give me some advice or give me a hand,thx very much list_item

tjerkw commented 11 years ago

Please use github issue tracker. Direct mails are not appreciated. On Aug 14, 2013 11:54 AM, "Jerome Song" notifications@github.com wrote:

when I call method collapseLastOpen() method when i click the item and start another activity,after come back,I come across this phenomenon?Can you give me some advice or give me a hand,thx very much [image: list_item]https://f.cloud.github.com/assets/3196586/960983/cf578ecc-04c6-11e3-9c25-b8e21e868220.png

— Reply to this email directly or view it on GitHubhttps://github.com/tjerkw/Android-SlideExpandableListView/issues/39 .

songzhiyong commented 11 years ago

I'm sorry to trouble you ,but I have already opened the issue here https://github.com/tjerkw/Android-SlideExpandableListView/issues/39 i don't kow why you received in your mail box.

tjerkw commented 10 years ago

Ah I understand i get these issues in my mailbox too.

As I understand your issue is that the expandable view is still collapsed?

Probably you have to wait for the animation to be done after calling collapseLastOpen, this is because the collapseLastOpen actual starts an animation to collapse it and once the animation ended the item will be set to GONE.

But it does remember the state properly, so i'm a bit confused why you see this issue.

Could you try sleeping a second before going to the next acitivty, to confirm my hypothesis?

songzhiyong commented 10 years ago

Thanks for your reply. My final solution is writing the layout with java code rather than the xml, then it works like charm. It's so weird and thanks all the same.