Android Question Padding on text labels in listview

wimpie3

Well-Known Member
Licensed User
Longtime User
How can I add left and right padding on the text labels inside a listview, without using an extra library?

I suppose this should be possible with javaobject and a loop over the items in a listview, but I don't know how.

If I apply padding on the listview itself, this works, but shifts the divider lines as well. I want the divider lines to keep touching the sides of the screen, but apply padding on the text inside the listview.
 
Top