<TextViewAndroid:id= "@+id/entry"Android:layout_width= "Match_parent"Android:layout_height= "40DP"Android:background= "@drawable/shape_button_sure"Android:layout_marginleft= "10DP"Android:layout_marginright= "10DP"Android:layout_margintop= "20DP"android:gravity= "Center"Android:text= "@string/entry"Android:textcolor= "@color/white"android:textsize= "18SP" />/><ButtonAndroid:id= "@+id/but"Android:layout_width= "Match_parent"Android:background= "@color/sylan"Android:layout_height= "40DP"Android:layout_marginleft= "10DP"Android:layout_marginright= "10DP"Android:layout_margintop= "20DP"Android:text= "@string/entry"Android:textcolor= "@color/white"android:textsize= "18SP" />/>
The two kinds of buttons, obviously textview custom to be better
<?XML version= "1.0" encoding= "Utf-8"?><Shapexmlns:android= "Http://schemas.android.com/apk/res/android" > <CornersAndroid:radius= "5DP" /> <SolidAndroid:color= "#2678c4" /> <paddingAndroid:bottom= "5DP"Android:left= "20DP"Android:right= "20DP"Android:top= "5DP" /></Shape>
This is a custom property, but it seems that padding is not used, so where does padding use the
Used in an item clock
<layer-listxmlns:android= "Http://schemas.android.com/apk/res/android"> <Itemandroid:drawable= "@drawable/shape_below"/> <ItemAndroid:top= "10px"Android:right= "10px"android:drawable= "@drawable/shape_cover"/></layer-list>
Android-Customized button buttons