Menu icon Foundation

Designer | Florida

I love art

My Posts


My Comments

Waqqas Anwar commented on Emilia Kubo's post over 1 year

If you watch closely, it is not just a white bar. Your status bar color is set to white. You can see all the icons. So change the color by,
Window window = activity.getWindow();

// clear FLAG_TRANSLUCENT_STATUS flag:
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

// add FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag to the window
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

// finally change the color
window.setStatusBarColor(YOUR_COLOR);
or, in theme, change colorPrimaryDark which will be used as statusbar color.
Note : this method is added in API level 21.We tested it with these projects
Abogados de accidentes
London Notary Public
Glasgow skip hire
Taxi Manchester
Party booth London
Botox Manchester
Glasgow double glazing
It seems that I'm having a small problem when testing my app on Android Studio. A white bar is always being displayed in place of top bar icons (battery, time, etc), whenever I run my app on the emulator. I am not sure what this issue is but below shows a screenshot of my problem and logcat findings:
 

Posts Followed

  • 32
    Replies
  • Problem with Topbar Space

    By Emilia Kubo

    topbar

    When I add my topbar, I want it fixed to the top. This works on a full screen but when I try to shrink it to mobile size, there is now white space a the top. Any idea what I can do to get rid of this space?

    Last Reply by soomo 10 months ago


Following

    No Content

Followers

My Posts


My Comments

You commented on Emilia Kubo's post over 1 year

If you watch closely, it is not just a white bar. Your status bar color is set to white. You can see all the icons. So change the color by,
Window window = activity.getWindow();

// clear FLAG_TRANSLUCENT_STATUS flag:
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

// add FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag to the window
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

// finally change the color
window.setStatusBarColor(YOUR_COLOR);
or, in theme, change colorPrimaryDark which will be used as statusbar color.
Note : this method is added in API level 21.We tested it with these projects
Abogados de accidentes
London Notary Public
Glasgow skip hire
Taxi Manchester
Party booth London
Botox Manchester
Glasgow double glazing
It seems that I'm having a small problem when testing my app on Android Studio. A white bar is always being displayed in place of top bar icons (battery, time, etc), whenever I run my app on the emulator. I am not sure what this issue is but below shows a screenshot of my problem and logcat findings:
 

Posts Followed


Following

  • No Content

Followers