Skip to content

Fullscreen (with transparent bg) #91

@GuillaumeBourge

Description

@GuillaumeBourge

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions