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

Closeup Logic #29

Closed
squeeish opened this issue Mar 3, 2016 · 2 comments
Closed

Closeup Logic #29

squeeish opened this issue Mar 3, 2016 · 2 comments

Comments

@squeeish
Copy link

squeeish commented Mar 3, 2016

Hi,

Is it possible to implement CloseUpAlgorithm such that the header doesn't expand and hide automatically? What I mean is, when the header is fully expanded, if I move my finger upwards till the header is half of its original height and release my finger, the header doesn't collapse but remains as it is.

I'm very new to development with regards to touch events so I'd be grateful if you could point me in the right direction.

Thanks!

@noties
Copy link
Owner

noties commented Mar 3, 2016

Hi! If you don't specify CloseUpAlgorithm, the scroll state won't changed after touch event is finished. It can be done with xml: app:scrollable_defaultCloseUp="false" (which is default) or via code ScrollableLayout.setCloseUpAlgorithm(null)

@squeeish
Copy link
Author

squeeish commented Mar 7, 2016

Ah I didn't read properly then. Thanks! That cleared that up.

@squeeish squeeish closed this as completed Mar 7, 2016
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