![]() ![]() ![]() ![]() Offcial developer reference : setStatusBarColor(int)Ĭhris Banes Blog- appcompat v21: material design for pre-Lollipop devices! tStatusBarColor(ContextCompat.getColor(activity,R.color.my_statusbar_color)) ![]() add FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag to the window Here is how you can change the color of the status bar using the new tStatusBarColor method introduced in API level 21.Ĭhanging the color of status bar also requires setting two additional flags on the Window you need to add the FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag and clear the FLAG_TRANSLUCENT_STATUS flag. Lollipop: public abstract void setStatusBarColor (int color)Īndroid Lollipop brought with it the ability to change the color of status bar in your app for a more immersive user experience and in tune with Google’s Material Design Guidelines.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |