Now in some of latest google app you see transparent status bar eg. Google Music app. Bellow is a simple code to implement that you can add this code after you set your activity view inside onCreate method.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, | |
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); |
Also note that i test this code above > 21 not sure about bellow version. 🙂