參考網址:http://stackoverflow.com/questions/14054364/how-to-assign-padding-to-listview-item-divider-line
(list_divider.xml)
<?xml version="1.0" encoding="UTF-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetLeft="50dp"
android:insetRight="50dp" >
<shape>
<solid android:color="@color/orange" />
<corners android:radius="2.0dip" />
</shape>
</inset>
<ListView
android:dividerHeight="2dp"
android:divider="@drawable/list_divider"
...
/>
沒有留言:
張貼留言