“DialogFragment Android Fullscreen Stack Overflow” Kode Jawaban

DialogFragment Android 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);
        }
Nasty Narwhal

DialogFragment Android 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)
    }
}
Nasty Narwhal

Jawaban yang mirip dengan “DialogFragment Android Fullscreen Stack Overflow”

Pertanyaan yang mirip dengan “DialogFragment Android Fullscreen Stack Overflow”

Lebih banyak jawaban terkait untuk “DialogFragment Android Fullscreen Stack Overflow” di Java

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya