Issue
How can one create such a drawable that will be matching height of given layout ? I know I have to create a some sort of multiple shapes within one drawable but I am kinda lost in this.
Solution
It should work with xml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:paddingTop="4dp">
<item>
<rotate android:fromDegrees="90" android:gravity="center_horizontal" android:toDegrees="90">
<shape android:shape="line">
<stroke android:color="#000000" android:width="1dp"/>
</shape>
</rotate>
</item>
<item android:gravity="center_horizontal|top" android:height="8dp" android:width="8dp">
<shape android:shape="oval">
<solid android:color="#000000"/>
</shape>
</item>
<item android:gravity="center_horizontal|bottom" android:height="4dp" android:width="4dp">
<shape android:shape="oval">
<solid android:color="#000000"/>
</shape>
</item>
</layer-list>
Answered By - sagix
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.