Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Should fix varying toolbar height after scrolling #13

Closed

Conversation

adamaviner
Copy link
Contributor

Should fix varying toolbar height after scrolling, using scrollMaxDp instead of scrollMax, and changed the toolbar translation calculations

…instead of scrollMax, and changed the toolbar translation calculations
@florent37
Copy link
Owner

Thanks for your contribution. I checkout your branch and tested into my smartphone.
Did you test it ? I have an issue with it, I have a strange behavior with your modification

hammerheadlmy47iflorentchampigny05062015232518

@adamaviner
Copy link
Contributor Author

It works fine for me, I think the problem is that I hardcoded the heights of the status bar and toolbar in
line 104 : this.scrollMax = settings.headerHeight - (56 + 24);
Probably a bad idea.
Specifically it seems like using the transparent status bar, causes the 24dp of overlap there...
I think I need to measure the actual heights and presence in runtime or something,
not sure how to do that yet.

@florent37
Copy link
Owner

Yes it would be better if you get the real toolbar & status height. (maybe using viewtree observer on toolbar, etc. and http://stackoverflow.com/questions/3407256/height-of-status-bar-in-android)

And don't forget that some devices have transparent statusbar ;)

@florent37 florent37 closed this May 6, 2015
@florent37
Copy link
Owner

I closed this pull request but send me another when you have a new fix :) And I know you will find a really good fix ! 😄

thanks again for your contribution, I really appreciate it 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants