Answers for "android dialogfragment fullscreen stack overflow"

0

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);
        }
Posted by: Guest on March-30-2020
0

android dialogfragment fullscreen stack overflow

override fun onStart() {
    super.onStart()
    dialog?.let {
        val width = ViewGroup.LayoutParams.MATCH_PARENT
        val height = ViewGroup.LayoutParams.MATCH_PARENT
        it.window?.setLayout(width, height)
    }
}
Posted by: Guest on March-30-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language