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

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -