我想添加填充到列表視圖分隔符的頂部和底部。LsitView Divider Padding
我試過插入android:dividerPadding =「10dp」 屬性放到我的xml佈局文件中。
但沒有任何反應。我需要改變什麼?感謝大家的幫助。
<ImageView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="backgroundDescription"
android:scaleType="centerCrop"
android:src="@drawable/photo_01" >
</ImageView>
<com.hb.views.PinnedSectionListView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/android:list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@android:color/darker_gray"
android:dividerHeight="1dp"
android:footerDividersEnabled="false"
android:headerDividersEnabled="false" />
</FrameLayout>
這可能會有所幫助:http://stackoverflow.com/questions/14757829/androiddividerpadding-has-no-effect – Gravitoid