Sto provando a impostare un margine su un divisore listview
.
Il divisore è una linea tratteggiata:margine divisore Listview
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line" >
<stroke
android:dashGap="1dp"
android:dashWidth="1.5dp"
android:width="1dp"
android:color="#FF404040" />
<size android:height="3dp" />
</shape>
e un listview
dove i impostare il divisore
<ListView
android:id="@+id/lv_news_feed_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white"
android:divider="@drawable/ch_dashed_line_divider"
/>
ma voglio un divisore margine bilaterale. Ho anche provato a impostare un padding sulla forma, ma lo listview
sta ignorando il padding.
<padding
android:bottom="15dp"
android:left="15dp"
android:right="15dp"
android:top="15dp" />
C'è la possibilità di impostare un margine al listview
divisorio - tranne in GetView() dell'adattatore?
La migliore soluzione: http://stackoverflow.com/questions/14054364/how-to-assign-padding-to-listview-item-divider-line?lq=1 – ASP