How to set drawable size in layer-list

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

    I also came across the issue on Android 5.0 (API 21). It seems the gravity of item doesn't work for API less than 23. So the layout is required to be updated, I've made it compatible by applying calculated paddings for the second item node which is supposed to be a right-top aligned overlay.

    
        
    
        
    
    

提交回复
热议问题