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

Programmatically scroll to section header #41

Closed
codyrotwein opened this issue Jan 7, 2015 · 3 comments
Closed

Programmatically scroll to section header #41

codyrotwein opened this issue Jan 7, 2015 · 3 comments

Comments

@codyrotwein
Copy link

Is there any way to programmatically scroll to a particular section header? I have buttons along the top of my ListView which represent the different section headers, and I want to scroll to the appropriate section upon tapping them. Is this possible?

@dimitrireef
Copy link

did you find a solution for this issue ?

@codyrotwein
Copy link
Author

Not yet.

On Mon, Jan 12, 2015 at 4:32 AM, dimitrireef notifications@github.com
wrote:

did you find a solution for this issue ?


Reply to this email directly or view it on GitHub
#41 (comment)
.

@tokou
Copy link
Collaborator

tokou commented Jan 23, 2015

Hello,

You should call #smoothScrollToPosition(int) or #setSelection(int) on the underlying ListView while passing numberOfCellsBeforeSection(int section) as argument.

@tokou tokou closed this as completed Jan 23, 2015
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

3 participants