Making Round Corner Background in Android using xml
Create one new XML like bg_corner.xml
& Put this xml as Background for any View
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:topLeftRadius="0dp"
android:topRightRadius="30dp"
android:bottomRightRadius="30dp"
android:bottomLeftRadius="30dp" />
<stroke
android:width="3dp"
android:color="#000000" />
<solid
android:color="#800000c0"/>
</shape>
(This will make Background Image like this)
(OR)
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:radius="30dp" />
<stroke
android:width="3dp"
android:color="#000000" />
<solid
android:color="#800000c0"/>
</shape>
(This will make Background Image like this)
No comments:
Post a Comment