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

博客分享了两个链接,一个是https://blog.youkuaiyun.com/scry5566/article/details/25379275 ,另一个是http://angrytools.com/android/button/ ,称后者使用起来超简单,还给出了转载地址https://www.cnblogs.com/mqxnongmin/p/10819362.html 。
版权声明:本文为博主原创文章。未经博主同意不得转载。

https://blog.youkuaiyun.com/scry5566/article/details/25379275

       直接上地址: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:typelinear radial   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
 

转载于:https://www.cnblogs.com/mqxnongmin/p/10819362.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值