zoukankan      html  css  js  c++  java
  • Android Button Maker(在线生成android shape xml文件的工具),真方便!

    版权声明:本文为博主原创文章。未经博主同意不得转载。 https://blog.csdn.net/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: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
     

  • 相关阅读:
    P2761 软件补丁问题
    CF1335F Robots on a Grid
    [bzoj2088]P3505 [POI2010]TEL-Teleportation
    CF1335E Three Blocks Palindrome
    P3831 [SHOI2012]回家的路
    P4568 [JLOI2011]飞行路线(分层图)
    P4774 [NOI2018]屠龙勇士
    P2480 [SDOI2010]古代猪文
    CF #632 (Div. 2) 对应题号CF1333
    BSGS 和扩展
  • 原文地址:https://www.cnblogs.com/ldxsuanfa/p/10033128.html
Copyright © 2011-2022 走看看