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

displaying my toolbar image as background to status bar effecting navigation bar in android

I want my toolbar to take the space of status bar and the image used for it be the background of the status bar and I successfully do that with this code inside my activity //for using status bar space if (Build.VERSION.SDK_INT >=…
8
votes
4 answers

Why doesn't my layout move up enough with "adjustPan"?

I had some issues using adjustPan in my app, as it is not working as it is supposed to do. Some other users also experienced this problem, so I think it's important to share this issue (Layout doesn't move up enough when clicking EditText). Note: I…
8
votes
6 answers

React native statusbar not working with react-navigation in android

Versions: "native-base": "^2.4.2", "react": "16.3.1", "react-native": "0.55.2", "react-native-global-font": "^1.0.1", "react-native-router-flux": "^4.0.0-beta.28", "react-navigation": "^1.5.11" When i add react-navigation i…
8
votes
3 answers

Android: Transparent status bar with dynamic actionBar colors and DrawerLayout

I have an activity with a DrawerLayout. Our client requires us to dynamically change the action bar color and the corresponding status bar color of this activity depending upon the item selected from the DrawerLayout. This is easily done. However,…
user6464793
8
votes
1 answer

Status bar transparency doesn't work

I am trying to make status bar transparent in my application using this…
BArtWell
  • 4,176
  • 10
  • 63
  • 106
7
votes
2 answers

Hide status bar in Android 10 (API 29) and use its space in the application

I am trying to hide status bar in Android 10. I've already read a lot of answers to similar questions, but they don't work for my device. The goal is to use the space of the status bar as a part of application view: Some of the solutions described…
Ivan Bychkov
  • 269
  • 3
  • 8
7
votes
5 answers

How do I hide the status bar in my Android 11 app?

Every method I came across to hide status bar of my Android app is deprecated in Android 11. Does anyone know about any current acceptable method? Also I use Kotlin to develop my apps.
7
votes
2 answers

Oreo Notification Bar Round Icon

I want to know that how can I change the notification bar small icon in android Oreo (API 26). It has round white icon showing in the notification bar. How can I change it? Manifest file default notification icon set as below.
7
votes
3 answers

Showing content behind status and navigation bar

This looks like a duplicate question but I am not able to do it. I want complete transparent(not translucent) status bar as well as navigation bar and want the content to appear behind them. activity_details.xml
Vaibhav Maheshwari
  • 384
  • 1
  • 4
  • 18
7
votes
2 answers

Maintaining a full screen when an AlertDialog is displayed

Based on the following code snippet, I was wondering how to hide the soft keys (status and navigation bars) and maintain immersive mode throughout the whole app session even when an AlertDialog is displayed: public class MainActivity extends…
7
votes
1 answer

Android nougat status bar shows white color when launching an activity

In my android application, I have a MainActivity say M. this activity uses Android's tabLayout widget to initialize four tabs. Each tab corresponds to one Fragment say F1,F2,F3,F4 are four fragments. From F2 , i am launching an activity say C . But…
7
votes
5 answers

Status Bar color for API Level below 21 is not changing

The Status Bar color for API level 21 or above is changing according to my requirement but how to change the color for API level below 21. Below are the screenshots for both the API's API level 21: API level 19: colors.xml
7
votes
0 answers

Hide status bar in android when is softkeyboard visible but without using fullscreen flags

I need to create activity which will contain text input (EditText) and some list of items (TextView-s) under that input. The status bar wont be visible, only navigation bar will be visible. After user clicks on EditText, soft keyboard needs to be…
7
votes
3 answers

How to expand/collapse status bar through ADB?

Is there any way to expand/collapse status bar of Android phone over ADB?
Vaibhav Joshi
  • 211
  • 2
  • 4
  • 9
6
votes
2 answers

Programmatically Change Status Bar Text Color in Android 11 (API 30)

I am currently able to update the status bar text color from light to dark using the following inside my base activity: private fun toggleStatusBarTextColor(light: Boolean) { // clear any existing flags window.decorView.systemUiVisibility =…
ninehundreds
  • 1,097
  • 2
  • 21
  • 43
1 2
3
26 27