Issue
Basically I am trying to create this border for a textview and I cant seem to find anything online. I tried merging two shapes into one since thats basically a circle and a rectangle but it doesn't seem to work. Any help would be appreiciated
Solution
Create this in drawable folder, and use it as background:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<solid android:color="@color/colorPrimary"/>
<corners
android:bottomLeftRadius="100dp"
android:topLeftRadius="100dp" />
</shape>
Change 100dp
to what you like as well as the color.
Answered By - user8959091
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.