I want to have a shape
element with a two color border outline. I can do a single color outline using the solid
element, but this only allows me to draw a single line. I tried using two stroke
elements within my shape, but that didn't work either.
Is there a way to either draw a shape within a shape or draw two lines around my shape (which has rounded corners, BTW).
I found that the
<layer-list>
is the best approach. Like this:You then need to put the proper margins on your
listView
row layout, but it works quite nicely.so i have a work around but its ugly. the work around is to wrap my element inside another container element. i.e.
<RelativeLayout ... android:background="@drawable/outer"> <ListView ... android:background="@drawable/inner" /> </RelativeLayout>