Issue
Here is markup snippet for drawing rectangle with four rounded corners:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#fff"></solid>
<padding
android:bottom="5dp"
android:left="-1dp"
android:right="-1dp"
android:top="5dp"></padding>
<corners android:radius="2dp"></corners>
</shape>
But if I want to round the corners on one side only (two corners), how can I do it?
Thanks.
Solution
<corners
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"
android:topLeftRadius="2dp"
android:topRightRadius="2dp" />
Answered By - RamBabu Pudari
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.