Answers for "attach fullscreen to window 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

Code answers related to "attach fullscreen to window android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language