user2702700 user2702700 - 5 months ago 12
Android Question

How to create a custom ActionBar with a background and a pattern image?

I have to create an ActionBar with a background and another image on top of the background (with opacity) which displays like a pattern.

I have found the way to set the background image for my ActionBar, by using

setBackgrounddrawable()
.

But how can I set the pattern image on top of background image?

Can anyone please suggest?

Answer

A great SO Post for making a custom action bar. To set the opacity, use View.setAlpha(float) 0f to 1f.