Answers for "android full screen"

2

fullscreen activity android

public class ActivityName extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // remove title
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.main);
    }
}
Posted by: Guest on September-14-2020
1

making android activity fullscreen android studio

res -> values -> styles.xml
<resources>
	<style name ...>
    	.
    	.
    	.
    	<item name="android:windowFullscreen">true</item>
    </style>
</resources>
Posted by: Guest on September-02-2020
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 full screen"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language