How to create custom button with xml style. Ask Question 1. 1. Please suggest someone how to create button like this with xml style in android, without using any image only with the help of color,shape and style. android. share | improve this question. asked Oct 8 '13 at If you change the ImageView to a Button, and set android:background="@drawable/button", any text you set in android:text will be centered. You can also try setting the android:padding attribute of the ImageView/Button – savanto May 5 '14 at Android button maker. Android Button Maker is online tool to generate buttons code for Android Apps. Android API provide Drawable Resources where XML file defines geometric shape, including colors, border and gradients. These button is generating based on shape drawable XML code which load faster compare to normal PNG buttons.