How to set drawable size in layer-list

前端 未结 4 1481
暖寄归人
暖寄归人 2021-02-06 22:22

I\'m having problem with setting size of drawable in layer-list. My XML looks like this:



        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 23:17

    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.

提交回复
热议问题