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

Scrolling issues when expandable's height is taller than the list item's height #90

Open xarlotie opened 9 years ago

xarlotie commented 9 years ago

When you click on the second item in the list, the list scrolls the expandable for item 2 but the only visible part is the bottom of the expandable which is as tall as one item in the list. The whole expandable should be visible or at least it should scroll to the top of the expandable.

Am I making any sense here? Sorry if I'm explaining it badly.

xarlotie commented 9 years ago

i just did this. Works fine for me now.

if (!visible) {
    int movement = target.getBottom();
    listView.smoothScrollBy(movement, getAnimationDuration());
} else {
    if (r2.bottom == r.bottom) {
        int movement = target.getTop();
        listView.smoothScrollBy(movement, getAnimationDuration());
    }
}
Suresh94 commented 7 years ago

i have tried your code "better scroll animation when items expands" but no change ...the expandable list is still hiding up.....can i get any alternate code for dat