Issue
How can I draw the custom drawable as attached in the image?
I don't the complete code, just steps how should I proceed would be sufficient and any links to advanced custom drawable tutorials. Thanks.
Solution
I implemented it using layer-list. Anyone needs to see the code.. Message me.
<!-- Colored rectangle -->
<item>
<shape android:shape="rectangle" >
<stroke android:color="@color/color_black" />
<solid android:color="@color/col_gray_light" />
</shape>
</item>
<item
android:bottom="50dp"
android:left="-25dp"
android:right="-105dp"
android:top="-120dp">
<rotate android:fromDegrees="45" >
<shape android:shape="rectangle" >
<solid android:color="@color/color_white" />
</shape>
</rotate>
</item>
<item
android:bottom="63dp"
android:right="-15dp"
android:top="-40dp">
<rotate android:fromDegrees="45" >
<shape android:shape="rectangle" >
<solid android:color="@color/color_white" />
</shape>
</rotate>
</item>
<item
android:bottom="-40dp"
android:right="-20dp"
android:top="60dp">
<rotate android:fromDegrees="-45" >
<shape android:shape="rectangle" >
<solid android:color="@color/color_white" />
</shape>
</rotate>
</item>
Answered By - rohitanand
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.