Android Button Maker(在线生成android shape xml文件的工具),真方便!

       直接上地址:http://angrytools.com/android/button/


使用起来超简单,如图:

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.xml
<Button
android:id="@+id/angry_btn"

android: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:shadowRadius

Size

android:width
android:height

Corners

android:radius
Radius Property
android:topLeftRadius
android:topRightRadius
android:bottomLeftRadius
android:bottomRightRadius

Background

gradient solid
android:type   Center 
android:centerX
android:startColor
android:centerColor
android:endColor
android:angle

Padding

Padding On
android:left
android:top
android:right
android:bottom

Stroke

android:width
android:color
 

Android Button Maker(在线生成android shape xml文件的工具),真方便!,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。