简体   繁体   中英

Android transparent status bar implementation?

I noticed Play Store application detail pages show a transparent status bar since version 5.4 , but how is it implemented?

I tried to add WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS flag to my window, but the result is both the status bar and the navigation bar are transparent. How can I just make the status bar transparent but the navigation bar keeps normal?

I see your link and see that: +If you want collapse toolbar like this . Try [CoordinatorLayout][2] . +If you just want transparent toolbar try: android:background="@android:color/transparnt" on toolbar. Sorry if I misunderstood your question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM