Skip to content

akshaytandroid/LiveButton

 
 

Repository files navigation

LiveButton

MavenCentral AndroidArsenal

ScreenShot

Including in your project

dependencies {
	compile 'com.github.dakatso:livebutton:1.0.0'
}

Usage

<ru.katso.livebutton.LiveButton 
    xmlns:livebutton="http://schemas.android.com/apk/res-auto"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:gravity="center"
    android:text="Button"
    android:textColor="#ffffff"
    android:textStyle="bold"
    android:textSize="26sp"
    livebutton:corners="4dp"
    livebutton:normalHeight="6dp"
    livebutton:pressedHeight="2dp"
    livebutton:backgroundColor="#F57F76"
    livebutton:shadowColor="#b16262"/>

or

LiveButton button = (LiveButton) findViewById(R.id.button);
button.setPressedHeight(2);
button.setNormalHeight(8);
button.setCorners(12);
button.setBackgroundColor(0xffF57F76);
button.setShadowColor(0xffb16262);

Sample

Get it on Google Play

About

Pixel perfect button for android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%