Answers for "android fragment fullscreen"

0

android fragment fullscreen

override fun onAttach(context: Context) {
    super.onAttach(context)
    requireActivity().window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)
}

override fun onDetach() {
    requireActivity().window.clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)
    super.onDetach()
}
Posted by: Guest on June-29-2021

Code answers related to "android fragment fullscreen"

Browse Popular Code Answers by Language