How to set drawable size in layer-list

前端 未结 4 1550
暖寄归人
暖寄归人 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:26

    You can use inset tag for this. For example

    
       
       
           
       
    

    This will create paddings around you menu_drawable2 so it won`t be scaled. Just set the dimensions that you require.

提交回复
热议问题