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>
そして、listview
仕切りを設定する場所
<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"
/>
しかし、仕切りのマージンが左右に必要です。形状にパディングも設定しようとしましたが、パディングをlistview
無視しています。
<padding
android:bottom="15dp"
android:left="15dp"
android:right="15dp"
android:top="15dp" />
listview
アダプターの getView() を除いて、仕切りにマージンを設定する可能性はありますか?