Answers for "full screen in android"

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
0

full-screen background on android

window.setFlags(
        WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
        WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
    );
Posted by: Guest on August-02-2021

Code answers related to "full screen in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language