Answers for "status bar hide in android"

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

Code answers related to "status bar hide in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language