You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
Z1ni commentedon Sep 16, 2017
Same here. Can't use this otherwise nice lib with this bug.
franmontiel commentedon Sep 17, 2017
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 commentedon Oct 19, 2017
I have the same issue. Will you implement a solution?
Rasive commentedon 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