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

Gravity TOP pulls content up #15

Merged
merged 1 commit into from Jul 28, 2018

Conversation

elek90
Copy link
Contributor

@elek90 elek90 commented May 30, 2018

If using a theme like Theme.AppCompat.Light.NoActionBar, the getStatusBarHeightInPx function returns a negative value which then pulls the content of the flashbar up.

This could also be what's causing #3

@elek90 elek90 mentioned this pull request Jul 19, 2018
@ptrkaz
Copy link

ptrkaz commented Jul 20, 2018

Merge it plox

@elek90
Copy link
Contributor Author

elek90 commented Jul 25, 2018

Sorry, can't merge it since I don't have write access.

@aritraroy, can you have a look at this? :)

Copy link
Owner

@aritraroy aritraroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.

@aritraroy aritraroy merged commit 7de9f5f into aritraroy:develop Jul 28, 2018
@aritraroy
Copy link
Owner

Done.

@ptrkaz
Copy link

ptrkaz commented Jul 28, 2018

Thank you, that will be very useful to my current project.

@ptrkaz
Copy link

ptrkaz commented Jul 28, 2018

When will it be usable from gradle import?

@aritraroy
Copy link
Owner

You should be able to use the latest 1.0.3 as a Gradle import. Please check and let me know.

@klevisndoka
Copy link

1.0.3 works as it should for me.

@paradox02
Copy link

for me not work, when want show snack bar in the top.. snackbar show, but status bar its on it.
version 1.0.3

@findyourexit
Copy link

I moved to version 1.0.3 to see if it fixed the Gravity.TOP issue, but it seems to behave the same as 1.0.2.

@gaborbiro
Copy link

gaborbiro commented Nov 19, 2019

I worked around it by wrapping the showing of Flashbar in window.decorView.post {...}.
Problem is that when the Flashbar is shown too early in the Activity lifecycle, statusBarHeight is still 0.

@rkoshti
Copy link

rkoshti commented Oct 4, 2023

just append \n\n in the message it works for me surprisingly...!

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

Successfully merging this pull request may close these issues.

None yet

8 participants