Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 1.45 KB

README.md

File metadata and controls

47 lines (41 loc) · 1.45 KB

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