Note: Here is rounded_corner_button.xml. Save it in your drawable folder and use it in place of image.
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<corners android:radius="8dp" />
<gradient
android:angle="45"
android:startColor="#FFFF0000"
android:endColor="#80FF00FF" />
<padding
android:left="2dp"
android:top="2dp"
android:right="2dp"
android:bottom="2dp" />
<solid
android:color="#0f7fb6" />
</shape>
No comments:
Post a Comment