Set actual text padding in TextView with compound drawables

后端 未结 3 2050
野趣味
野趣味 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条回答
  •  暖寄归人
    2021-02-12 11:54

    Quite simple:

    android:drawablePadding="5dp"
    

    It will automatically use the padding according to the direction.

提交回复
热议问题