Set actual text padding in TextView with compound drawables

后端 未结 3 2055
野趣味
野趣味 2021-02-12 11:38

I have a ListView populated with an ArrayAdapter. For items I use just a single TextView layout. I want some of the rows to have compound

3条回答
  •  Happy的楠姐
    2021-02-12 12:02

    I'm posting this as an answer so that someone, who comes across this post finds the answer.

    There's no direct way to set a padding only to text, but you can set a positive padding to the whole TextView and set a negative padding for the drawable.

提交回复
热议问题