I want to create a shape drawable for that mimics the new holographic theme (Android >=3.0) on older Android versions.
It's quite easy to draw a line at the bottom with
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape >
<solid android:color="@color/border" />
</shape>
</item>
<!-- main color -->
<item android:bottom="1.5dp">
<shape >
<solid android:color="@color/background" />
</shape>
</item>
</layer-list>
But how to draw the tick boundaries left and right as in the holo theme
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…