使用起来超简单,如图:
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. You can customize button properties in setting panel and get source code.
Button buttonshape.xmlandroid:text=Button android:textColor=#FFFFFF android:textSize=30sp
android:layout_width=270dp android:layout_height=60dp android:background=@drawable/buttonshape android:shadowColor=#A8A8A8 android:shadowDx=0 android:shadowDy=0 android:shadowRadius=5 />
Button
android:text android:textColor android:textSize Shadow On android:shadowColor android:shadowDx android:shadowDy android:shadowRadiusSize
android:width android:heightCorners
android:radius Radius Property android:topLeftRadius android:topRightRadius android:bottomLeftRadius android:bottomRightRadiusBackground
gradient solid android:typelinear
radial Centerandroid:centerX android:startColor android:centerColor android:endColor android:anglePadding
Padding On android:left android:top android:right android:bottomStroke
android:width android:color