Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android dialogfragment fullscreen stack overflow

This below answer works for me in fragment dialog.  


  Dialog dialog = getDialog();
        if (dialog != null)
        {
            int width = ViewGroup.LayoutParams.MATCH_PARENT;
            int height = ViewGroup.LayoutParams.MATCH_PARENT;
            dialog.getWindow().setLayout(width, height);
        }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #dialogfragment #fullscreen #stack #overflow
ADD COMMENT
Topic
Name
6+8 =