FullScreenDialog icon indicating copy to clipboard operation
FullScreenDialog copied to clipboard

Statusbar problem

Open carmas123 opened this issue 6 years ago • 4 comments

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?

carmas123 avatar Aug 23 '17 18:08 carmas123

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

Z1ni avatar Sep 16 '17 19:09 Z1ni

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.

franmontiel avatar Sep 17 '17 16:09 franmontiel

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

alejandroaap avatar Oct 19 '17 18:10 alejandroaap

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

Rasive avatar Nov 02 '17 12:11 Rasive