Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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()
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #fragment #fullscreen
ADD COMMENT
Topic
Name
2+4 =