Android gridview with dotted/dashed separator -
i have design layout having gridview dashed/dotted separator. can please let me know how can it?
this question may resemble another question asked here in stackoverflow, it's different because:
a] need dotted line
b] dotted line shouldn't touch edge of cell can't done based on answer given @ question.
you can try below code:
drawable/dotted_shape.xml:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:color="#c7b299" android:dashwidth="15px" android:dashgap="15px" android:width="2dp"/> </shape>
this give dotted line separator. thanks.
Comments
Post a Comment