How do I make the toolbar transparent on Android?

How do I make the toolbar transparent on Android?
Answer
2 Answers. Make sure the Toolbar is at the bottom of the XML so it’ll be on top in the z-order. Use RelativeLayout so you can make sure the Toolbar is visually at the top left on the screen. @color/primary should be transparent (#00000000) OR you can set it in code if you need to use other colors as well.
 

Tìm kiếm

Back
Top