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

Fullscreen (with transparent bg) #91

Open
GuillaumeBourge opened this issue Nov 2, 2017 · 0 comments
Open

Fullscreen (with transparent bg) #91

GuillaumeBourge opened this issue Nov 2, 2017 · 0 comments

Comments

@GuillaumeBourge
Copy link

I want my dialogfragment appears with fading blured background. This pretty good lib corresponds to my needs, but i am facing issue with setting full height/width to the dialog.
By default the dialog is centered on screen et get wrap_content.
I tryed by setting style to the dialog :
@null
true
false

No change at all

I tryed to set height/width dynamically in the onStart :
int width = ViewGroup.LayoutParams.MATCH_PARENT;
int height = ViewGroup.LayoutParams.MATCH_PARENT;
dialog.getWindow().setLayout(width, height);

With this the dialog take the whole width and seems to take the full height (tap anywhere do not quit dialog) but the content is stuck to the top of the view, and unable to put a layout matching the all view height (linear, Relative, Constraint...)

I reproduce this in the exemple app

Anyone have a solution or a workaround ?

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

1 participant