Is there a way to make the new Android support Toolbar:
android.support.v7.widget.Toolbar
Have a transparent background?
I tried setting the colorPrimary
to an ARGB (#00ffffff) but it just gives me a solid gray bar. And Toolbar
only allows me to set a background drawable. Is it kosher to set the background drawable to a transparent PNG, or is there a better way to do this?
Ideally I'd be able to do it in code / animate it so certain activities have a transparent bar and some activities don't.
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…