Inset drawable not working as described in documentation

后端 未结 3 2024
旧巷少年郎
旧巷少年郎 2021-02-14 12:52

As described on Android Developer site:

A drawable defined in XML that insets another drawable by a specified distance. This is useful when a View

3条回答
  •  情歌与酒
    2021-02-14 13:14

    Another option: if you want to use DP instead of PX, try my suggestion below. From my experience, InsetDrawable only works with pixels, which I find... unhelpful. To be honest, I am not happy with this solution, but hey, it works.

    
    
    
    
    
    

提交回复
热议问题