Android – Making activity full screen with status bar on top of it

I know that the guy asking the question may have found his own solution but for the people who are still looking for a solution this is a very simple solution but one thing it has a limitation till Kitkat so a condition is added if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); }

Android M Light and Dark status bar programmatically – how to make it dark again?

The solution posted by @Aracem is valid but, doesn’t work if you try change also the background color of the status bar. In my case I do it in the following way. To enable windowLightStatusBar(programatically,inside a Utils class for example): public static void setLightStatusBar(View view,Activity activity){ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { int flags = view.getSystemUiVisibility(); … Read more

Can I set FLAG_LAYOUT_NO_LIMITS only for status bar?

this work for me getWindow().setFlags( WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS ) styles.xml <style name=”TranslucentStatusBar” parent=”Theme.AppCompat.Light.NoActionBar”> <item name=”android:windowTranslucentStatus”>true</item> </style> v21\styles.xml <style name=”TranslucentStatusBar” parent=”Theme.AppCompat.Light.NoActionBar”> <item name=”android:windowDrawsSystemBarBackgrounds”>false</item> <item name=”android:windowTranslucentStatus”>true</item> </style> status bar will be transparent or translucent, navigation bar won’t hope this helps!

Android transparent status bar and actionbar

I’m developing an app that needs to look similar in all devices with >= API14 when it comes to actionbar and statusbar customization. I’ve finally found a solution and since it took a bit of my time I’ll share it to save some of yours. We start by using an appcompat-21 dependency. Transparent Actionbar: values/styles.xml: … Read more

How to hide Android StatusBar in Flutter

SystemChrome.setEnabledSystemUIOverlays([]) should do what you want. You can bring it back with SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values). Import it using import ‘package:flutter/services.dart’; Update answer (from Flutter 2.5 or latest): SystemChrome.setEnabledSystemUIMode(SystemUiMode.leanBack); Or you can use another options like: SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [ SystemUiOverlay.bottom ]); // to hide only bottom bar Then when you need to re-show it (like when dispose) use … Read more

How to hide status bar in Android

Write this in your Activity @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); } Check Doc here : https://developer.android.com/training/system-ui/status.html and your app will go fullscreen. no status bar, no title bar. 🙂

Change status bar text color when primaryDark is white

I’m not sure what API level your trying to target, but if you can use API 23 specific stuff, you can add the following to your AppTheme styles.xml: <item name=”android:statusBarColor”>@color/colorPrimaryDark</item> <item name=”android:windowLightStatusBar”>true</item> when android:windowLightStatusBar is set to true, status bar text color will be able to be seen when the status bar color is white, … Read more

How to change the status bar color in Android?

Android 5.0 Lollipop introduced Material Design theme which automatically colors the status bar based on the colorPrimaryDark value of the theme. Note by realdognose: with Material Design library it will be colorPrimaryVariant This is supported on device pre-lollipop thanks to the library support-v7-appcompat starting from version 21. Blogpost about support appcompat v21 from Chris Banes … Read more