Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xarlotie opened this issue Nov 26, 2014 · 2 comments

Comments

@xarlotie
Copy link

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
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants