Search...

Monday, February 27, 2012

How to show Top-most and Bottom-most Horizonal Divider in ListView in android??


Sample example:

 You have to give some bottom and top padding in list view
<ListView android:id="@+id/test"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:divider="@drawable/line_horiz"
android:dividerHeight="2dp" android:footerDividersEnabled="true"                         android:headerDividersEnabled="true" android:paddingTop="10dp"
       android:paddingBottom="10dp"/>

1 comment:

  1. Harrah's Cherokee Casino & Hotel - Mapyro
    Harrah's Cherokee Casino & Hotel is Cherokee, 광주 출장안마 NC. Check reviews, 김천 출장샵 photos & 계룡 출장안마 cheap rates for Harrah's Cherokee 천안 출장마사지 Casino & Hotel in 익산 출장안마 Cherokee, NC.

    ReplyDelete