Custom Buttons in Android
 
Android applications make use of so many UI components, out of those some can be customized as per our need. In this tutorial, we will learn about custom Buttons in very few steps.  Two shapes we will see in this Tutorial. 1. Rounded Corner Button 2. Circle Shape Button. First of all, we will see how to create rounded corner Button Step 1: After creating Android Project create XML file under res => drawable folder and give a name   rounded_corner_bg.xml  and paste below code. <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"     android:shape="rectangle" android:padding="10dp">     <!-- you can use any color you want -->     <solid android:color="#00BCD4"/>     <corners android:radius="40dp"/> </shape> Step 2: Open activity_main.xml  file and paste below code <?xml version="1.0" encoding="utf-8"?> ...
