Saturday, 15 May 2010

xml - dashed dividers in vertical ListView (Android) -



xml - dashed dividers in vertical ListView (Android) -

i went through of dashed divider topics alrady, somehow issue persists:

i have vertical linearlayout , want display dashed dividers between each item in linearlayout. utilize next shape, still straight line.

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:color="#7b7b75" android:dashgap="2dp" android:dashwidth="1dp" /> <size android:height="1dp"/> </shape>

please seek this.

drawable/dotted.xml: <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:color="#c7b299" android:dashwidth="10px" android:dashgap="10px" /> </shape>

view.xml:

<imageview android:layout_width="match_parent" android:layout_height="wrap_content" android:src="@drawable/dotted" />

android xml android-linearlayout divider dotted-line

No comments:

Post a Comment