“Android DialogFragment FullScreen Stack Overflow” Réponses codées

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

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

Réponses similaires à “Android DialogFragment FullScreen Stack Overflow”

Questions similaires à “Android DialogFragment FullScreen Stack Overflow”

Plus de réponses similaires à “Android DialogFragment FullScreen Stack Overflow” dans Java

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code