0

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?

user2702700
  • 639
  • 2
  • 11
  • 26

2 Answers2

0

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

Community
  • 1
  • 1
jaymeht
  • 678
  • 1
  • 8
  • 14
  • yes, that link was useful. I have also created layered list with two images. one acts as background and i have set alpha for the second one to 33 and set this images as background to action bar along with custom view. – user2702700 Sep 07 '13 at 01:19
0

This may help you "http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/" ,this example having types of action bars.