Answers for "how to hide status bar in android studio"

0

how to remove status bar in android

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
Posted by: Guest on September-29-2020
2

android studio remove notification bar

protected void onResume() {
        super.onResume();
        View decorView = getWindow().getDecorView();
        // Hide the status bar.
        int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
        decorView.setSystemUiVisibility(uiOptions);
    }
Posted by: Guest on April-07-2020
1

how hide status bar in android studio

getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
Posted by: Guest on May-23-2021
0

android hide status bar and action bar daynamically

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends AppCompatActivity {
   @Override
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      requestWindowFeature(Window.FEATURE_NO_TITLE);
      getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
      setContentView(R.layout.activity_main);
   }
}
Posted by: Guest on May-16-2020
-1

android studio hide status bar

getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
Posted by: Guest on June-25-2021

Code answers related to "how to hide status bar in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language