2

I am generating a listview as follows:

setListAdapter(new ArrayAdapter<String>(this, R.layout.row, fileListS));

in which "row" is the following xml file:

<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:textSize="14sp">
</TextView>

Is there an easy way to increase the spacing between the items lists in the generated listview? If I was using a ListView instead of TextView I guess I could use:

 android:dividerHeight="10.0sp"

But what can I do now that I use TextView?

Thanks,

TJ

TJ1
  • 7,578
  • 19
  • 76
  • 119

1 Answers1

0

You mean you want to change the thickness of the divider?

If so you could use a drawable similar the issues/solutions here

Using a Drawable Divider

Maybe a better answer

Community
  • 1
  • 1
Idistic
  • 6,281
  • 2
  • 28
  • 38