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

Statusbar problem #4

Open
carmas123 opened this issue Aug 23, 2017 · 4 comments
Open

Statusbar problem #4

carmas123 opened this issue Aug 23, 2017 · 4 comments

Comments

@carmas123
Copy link

Hi and thank you for your work.
I try to use your library but I've a big problem when I show the dialog.
I got this result:

image

please can you help me?

@Z1ni
Copy link

Z1ni commented Sep 16, 2017

Same here. Can't use this otherwise nice lib with this bug.

@franmontiel
Copy link
Owner

You probably have android:fitsSystemWindows="true" in your activity layout. This value must be set to false.
I will check if I can implement a different layout when this option is set to avoid the issue completely.

@alejandroaap
Copy link

I have the same issue. Will you implement a solution?

@Rasive
Copy link

Rasive commented Nov 2, 2017

Quick fix for anyone having this problem:

final float scale = getContext().getResources().getDisplayMetrics().density;
final View outerParent = (View) container.getParent();
outerParent.setPadding(0, (int) (24 * scale + 0.5f), 0, 0);

if your statusbar is transparent add this too:

outerParent.setBackgroundColor(getResources().getColor(R.color.colorPrimary));
outerParent.findViewById(com.franmontiel.fullscreendialog.R.id.content).setBackgroundColor(getResources().getColor(R.color.white));

Add this in your fragment´s onCreateView

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

5 participants