Announcement

[Announcement] Important Notice about Minor Adjustments to MIUI Status Bar

2017-07-12 06:42:59
3983 13
Hello, Mi Fans!
With MIUI we always think about how little changes can make your user experience better and following that direction we are bringing some minor but important changes in the MIUI status bar, we would like you to notice them in order to have a clear understanding of the new setup,

1. Below Android 6.0
Users will be able to change the color of the status bar only, not the text color shown in the status bar and so we made our own interface in MIUI to change the color of the text to black.

2. Android 6.0 & Up
Android has a way for users to give the ability to customize both the color and text color of the status bar. Although there seems to be a conflict between MIUI and Android approach and so caused trouble to overseas developers with the adjustments.


MIUI Status Bar Changes
Because of the problem stated above, we have decided to use Android's API and dropping our own MIUI interface. The change will take effect from 7.7.13 Global developer ROM and onwards, it has been already implemented in closed beta ROM and will be followed by the stable version too. We are sorry for any inconvenience caused.


Some affected applications are UC, instant, curiosity and other applications (mostly Chinese apps). We'll inform app developers regarding this minor adjustment soon, please be patient.

1. In the new MIUI version (based on Android 6.0, developer ROM 7.7.13 and later):
- Use View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR To set the" status bar black character "effect
- Set WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS,
- and no WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS

Reference:
    Window window = getWindow();
    window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
    window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);

2. In older version of MIUI
    Window window = getWindow();
    window.addExtraFlags(MiuiWindowManager.LayoutParams.EXTRA_FLAG_STATUS_BAR_DARK_MODE);

That's it for now folks! Do leave your thoughts in the comment section below.
2017-07-12 06:42:59
Favorites7 RateRate

Bunny Master

Shankhadip_Sardar1997 | from Redmi Note 3

#1

Thanks for implementing this since this will help to read what's on statusbar while using those apps like UC(which I use mostly)!!!!!
2017-07-12 12:48:15

Bunny Avanzado

FAROOQUI | from Redmi 4A

#2

Keshe chenge hoga ye
2017-07-13 01:58:28

Bunny Avanzado

FAROOQUI | from Redmi 4A

#3

Plzzz help me
2017-07-13 01:58:47

Bunny Master

Abdul muqeem | from MI MAX

#4

thanks again
2017-07-13 14:18:08

Bunny Semi-pro

1672831869 | from Redmi Note 4

#5

Amazing fact
2017-07-13 22:40:31

Device team

FF8 | from app

#6

thanks....noted !
2017-07-16 02:20:56

Bunny Master

wittwicky69 | from mobile

#7

Thank you... Very useful information.
2017-07-23 18:32:26
Always Happy With Mi
No Sacrifice, No Victory!

Moderador

Vatsal Vala | from Redmi 3S

#8

Finally seen some hope about this issue
2017-07-25 10:35:40

Bunny Avanzado

shubham shaw | from Redmi 4A

#9

i have a same problem too , on my redmi 4a miui8.5 global stable
2017-08-02 10:35:59

Bunny Pro

karthi80 | from Redmi Note 4

#10

super sharing
2017-08-02 19:36:19
nkarthikeyan
please sign in to reply.
Sign In Sign Up
Бета тестер
MIUI 8
Power At Last
AP2 Livestream
2016 Diwali with Mi
3 дня подряд
7 дней подряд
21 день подряд
40 дней подряд
70 дней подряд
Shake!!Shake!!
Lucky Draw No.
500K Members
2016 Christmas
Mi Explorers
2016 #ThrowbackwithMiComm
1 million members
Xiaomi 7th Birthday
Fitness Guru
June-100 replies in a month
more power more life
1st Anniversary
Columnist
71st Independence Day
MIUI 9
MIUI 7th Anniversary
2 million registered members
Diwali

Mi Comm APP

Stay updated on Mi Products and MIUI

Copyright
Content Policty
Quick Reply To Top Return to the list