GlowButton

Android Library to beautify your layouts with glowing buttons.

GlowButton

Usage

Step 1: Add it in your root build.gradle

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

Step 2: Add the dependency

dependencies {
    implementation 'com.github.SanojPunchihewa:GlowButton:1.0.0'
}

Step 3: Use it in your layout

Glow button have the following attributes in addition to the default button attributes. Please see the demo app

    <com.sanojpunchihewa.glowbutton.GlowButton
        ...
        app:buttonColor="@color/background_color_red"
        app:unpressedGlowSize="20dp"
        app:pressedGlowSize="25dp"
        app:glowColor="@color/glow_color_red"
        app:cornerRadius="50dp"
        ...
        />

Customizable attributes

Attribute default value xml
button color #8800FF buttonColor
glow color #885BFC glowColor
unpressed glow size 10dp unpressedGlowSize
pressed glow size 12dp pressedGlowSize
corner radius 50dp cornerRadius

GitHub