Inset drawable not working as described in documentation

后端 未结 3 2031
旧巷少年郎
旧巷少年郎 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:17

    By default, setting a background drawable also applies that drawable's padding to the view. Set the padding explicitly if you don't want it to match the background drawable.

提交回复
热议问题