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 drawables set.
Question: is there a way to set padding for the actual text that is contained in TextView
so that the compound drawables don't get the padding too? Other solution would be to lock the width of text. Do I need to add ImageViews
to my layout?
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.