Android Button Maker
http://angrytools.com/android/button/
Android Button Maker
<Button
android:id="@+id/angry_btn"
android:text="Button"
android:textColor="#FFFFFF"
android:textSize="30sp"
android:layout_width="270dp"
android:layout_height="100dp"
android:background="@drawable/buttonshape"
Button angryButton = (Button) findViewById(R.id.angry_btn);
angryButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Click event trigger here
}
| Button
android:text
android:textColor
android:textSize
Shadow Off
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:color
Padding
Padding On
android:left
android:top
android:right
android:bottom
Stroke
android:width
android:color
| |
Android button maker
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.
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 Click Event: There are two ways to handle button click event.
(1) Add android:onClick attribute inside button xml code
(2) Your Activity class need to implement View.OnClickListener then write button click listener method which shows above(1) Add android:onClick attribute inside button xml code
Comments
Post a Comment