Questions tagged [android-statusbar]

The status bar located on the top of the Android device screen. It displays system status icons and notification icons.

The status bar is the Android device screen area dedicated to the display of notifications, communication of device status. It displays pending notifications on the left and status, such as time, battery level, or signal strength, on the right. Swiping down from the status bar shows notification details.

This tag is to be used with tag.

392 questions
6
votes
1 answer

Change status bar color without having Window

I want to manipulate the status bar (ex.color) but in the background. I am using a foreground service to do this. Thus there is no window as it is happening in the background, specifically there is no activity. However, the function public abstract…
6
votes
3 answers

Android: Translucent status bar not working with Google Maps API

I have a problem where the status bar will not turn translucent. The translucent status bar and navigation bar code works fine by itself, however, when I implement the Google Maps Fragment into the activity view, the translucent bar turns gray. I…
6
votes
3 answers

Change Android Statusbar color In Cordova

I want to change the Status bar color in Android (I'm using 6.0 for testing). I tried the statusbar plugin and all the solutions I found for it but nothing worked. This is included in my config.xml :
Voakie
  • 169
  • 1
  • 1
  • 7
6
votes
1 answer

How to Programmatically close the notification tray

I want to share the GCM notification item. The share button is responding to click events and item gets shared too. Only problem here is, Intent chooser dialog is present below the notification tray. User has to manually close the status bar and…
Sangeetha Pinto
  • 1,022
  • 3
  • 14
  • 32
5
votes
3 answers

Flutter Status Bar transparent

How can I make the status and the option bar (on the bottom) transparent? I tried many thinks but its still black with white text Here is the code that I already implemented: Future main() async { …
Caspar Bm
  • 258
  • 4
  • 12
5
votes
1 answer

Accompanist systemUiController darkIcons doesn't work on Android 11

I'm using the Accompanist systemUiController library and I'm setting darkIcons=false while in Light Theme but the effect doesn't apply on devices with android 11. It seems to work on devices with android 10 for example. This is the code with which…
5
votes
0 answers

Android 11 - window.setDecorFitsSystemWindows applies for both - status and navigation

With old-fashioned flags we could create an app with translucent param applied only to a status bar. window.decorView.systemUiVisibility = window.decorView.systemUiVisibility or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or…
blinker
  • 599
  • 5
  • 18
5
votes
1 answer

How to hide status bar and navigation bar using Theme.MaterialComponents

i have some problem to hide status and navigation bar in app. Assumptions: use lib com.google.android.material:material:1.1.0-alpha10 use style Theme.MaterialComponents.Light.NoActionBar Solutions like window.apply { …
5
votes
3 answers

How to change navigation header color in react native?

How do I change the color of the navigation header in a React Native app? I tried initialising background color but it didn't work. Below is my code snippet for navigationOptions: static navigationOptions = ({ navigation }) => ({ header: props…
Abhishek D
  • 465
  • 2
  • 9
  • 24
5
votes
3 answers

Hiding the status and navigation bars immediately in app launch

I was wondering if there is a way to hide an Android device's soft keys (status and navigation bars) right when an app launches? Take, for instance, a game that initially displays a black screen while hiding the soft keys in runtime prior to the…
5
votes
1 answer

Android full screen navigation bar transparency bleeds onto navigation view

I'm using design library navigation view in full screen. But transparency of Navigation Bar and Status Bar bleeds onto NavigationView.Transparent black rectangles occur on right and top of the NavigationView. My…
5
votes
0 answers

Why Actionbar should be hidden if we are hiding the Statusbar?

Eventhough its possible to hide the Status bar while keeping the Action bar the docs here emphasises "You should never show the action bar without the status bar." What is the reason for this? Is it just a UX guideline or are there other reasons…
5
votes
2 answers

Removing navigation view top padding in Android N Multi-Window mode

I would like to remove paddingTop/marginTop from the navigation view in Multi-Window mode of Android N. Like Gmail already does. If you see the image below, I'm talking about the normal padding with size equals to the status bar at the beginning of…
5
votes
1 answer

Android: fitsSystemWindows and newline interfering with bottomSheets

I have found out that if the parent layout contains android:fitsSystemWindows="true", it will interfere with my BottomSheets positioning, when a view-related action happens. Specifically the one I'm encountering: where a newline in a textview will…
TWL
  • 6,228
  • 29
  • 65
5
votes
1 answer

Android: content height is offset by some pixels after return from fullscreen

I am using Android Studio to create a fullscreen app. And I used the FullScreenActivity template provided by Android Studio. It can toggle full screen mode perfectly except that activity's content's top is offset upward by some pixels(similar to…