Issue
I am trying to create a shape like
But right now what it look like is
Here is my code
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/somecolor" />
<corners
android:radius="10dip"
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadius="10dp" />
<padding
android:top="10dp"
android:bottom="10dp" />
</shape>
Any help?
Solution
Change android:top
to android:left
and android:bottom
to android:right
.
Also you could use negative values for these attributes, so you can finely tune what you would want to achieve.
Answered By - frogatto
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.