Skip to content

Statusbar problem #4

Open
Open
@carmas123

Description

@carmas123

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?

Activity

Z1ni

Z1ni commented on Sep 16, 2017

@Z1ni

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

franmontiel

franmontiel commented on Sep 17, 2017

@franmontiel
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

alejandroaap commented on Oct 19, 2017

@alejandroaap

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

Rasive

Rasive commented on Nov 2, 2017

@Rasive

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Statusbar problem · Issue #4 · franmontiel/FullScreenDialog