Answers for "make view full screen android studio"

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

Code answers related to "make view full screen android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language