An example of the following button label:
In this connection to the label <shape>, set the background style, borders, gradients, rounded corners, and so on, the use of various effects see the following code
The Drawable folder creates a new nimei.xml that reads as follows:
<?xml version= "1.0" encoding= "Utf-8"?> <shape xmlns:android=
"http://schemas.android.com/apk/res/" Android ">
<gradient android:startcolor=" "#c0000000" android:endcolor= "#c0000000" android:angle= "90" /><!--background color gradient angle for gradient angle-->
<solid android:color= "#00ffffff"/><!--background fill color-->
< Stroke android:width= "3DP" android:color= "#ff000000"/><!--strokes, border width, color--> <corners
" 10DP "/><!--Corner arc radius-->
<padding android:left=" 3DP "android:top=" 3DP "android:right=" 3DP "Android: Bottom= "3DP"/><!--left blank-->
</shape>
The button is then quoted as follows:
<button
android:id= "@+id/button"
android:layout_width= "Wrap_content"
Wrap_content "
android:text=" button "
android:background=" @drawable/nimei/>