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
17
votes
3 answers

How to tell the activity has been covered by the notification area?

Usually, Android calls onPause on your Activity when it starts being obscured or hidden, followed by onStop when it's no longer shown at all. In my game, I pause the game in onPause, so the user doesn't lose the game while looking…
Dan Hulme
  • 14,779
  • 3
  • 46
  • 95
16
votes
2 answers

Status Bar appears when soft keyboard appears but not hidden back when soft keyboard disappears while in Immersive Mode

Initially I set my Activity to be in Immersive Mode with the following code: View decorView = getWindow().getDecorView(); decorView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |…
16
votes
1 answer

Invert icon color of status bar

I have searched a lot about this but all I have found is how to change status bar color. I want to invert color of icons in status bar on white background like Soundcloud has done in its mobile application like: How to do this?
Shahzeb
  • 3,696
  • 4
  • 28
  • 47
16
votes
2 answers

Android Draw behind Status bar but not behind the navigation bar

I'm looking into a way where the status bar is completely transparent, not translucent and where the Navigation Bar is left untouched. Closest I can get is to use the flag WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS but this draws behind the…
14
votes
5 answers

How to create a notification without icon in the statusbar or simply hide it?

I'd like to know how to create a notification that doesn't show the icon in the statusbar. There is a way to hide it?
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
13
votes
8 answers

Change status bar color with react-navigation

I use a DrawerNavigator from react-navigation in my app. Without any customization, the Android status bar is blue, and not black. I tried to do StatusBar.setBackgroundColor('#000000'); but it only works for a few seconds, and then it goes back to…
Arnaud
  • 4,884
  • 17
  • 54
  • 85
13
votes
2 answers

How to display countdown timer on status bar in android, like time display?

I am making an app which allows the user to pick a date and time. Once the date and time are reached,it will display an animation on the screen. Before its time, it will just show countdown time (like xxx:xx:xx) on screen. I achieved this using a…
12
votes
5 answers

Android - hide status and navigation bar completely for an app with nav drawer and app bar

How can I dynamically hide the status and the navigation bar completely? The app contains a regular navigation drawer with a appbar / toolbar and FAB buttons. When switching to full screen, the content of the navigation and the status bar is…
12
votes
3 answers

How do I show text in android system status bar

I'm trying to develop an app for Android Nougat and I want to show some info/text in the status bar generating from a android service routine. So my problem is, I don't know how to show the text in the status bar. I added a sample image to show what…
Matze
  • 171
  • 1
  • 1
  • 7
12
votes
5 answers

How to hide status bar?

How can I hide the status bar for a specific activity? I found this similar question, but none of the answers worked for me. The app just crashed every time I tried to go to the activity: How to hide status bar in Android Thanks.
user5495265
  • 183
  • 1
  • 2
  • 5
11
votes
2 answers

StatusBar shows when keyboard shows up

My activity use CollapsingToolbarLayout and i remove successfully the StatusBar doing this: View decorView = getWindow().getDecorView(); // Hide the status bar. int uiOptions =…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
10
votes
2 answers

Google Now gradient/shadow on status bar & navigation bar

I'm trying to make a similar status bar and navigation bar gradient as Google Now. Image Reference: Rectangular area indicated as below After trying the below option on Android Marshmallow,
Jitendar M
  • 633
  • 1
  • 10
  • 26
9
votes
1 answer

Disable status bar pull in Oreo

The method for kiosking an application by disabling pull and click of the status bar does not work on android 8. As anserwed on How to disable status bar click and pull down in Android? You can lay a window over the status bar to disable any touch…
9
votes
2 answers

fitsSystemWindows ignored by ConstraintLayout

I am trying to show make an activity in my app where the statusbar is completely transparent. I added this to my style: @android:color/transparent
9
votes
1 answer

Android - overlay screen including status bar content

I want to make an overlay screen which overlay entire screen including the status bar and navigation bar. I spends few hours of Googling/research still no luck. This is my code: MainActivity.java (launcher): package…
林果皞
  • 7,539
  • 3
  • 55
  • 70
1
2
3
26 27