I\'m having problem with setting size of drawable in layer-list. My XML looks like this:
Hope this will help :- You can use a nine patch drawable for menu_drawable2. You can make menu_drawable2 like having transparent region around it edges. Use this transparent region to specify stretchable region in nine patch.
menu_drawable2