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.

grid layout dotted/dashed separator

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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -