Sunday, December 1, 2019

How to Glow button Android example

How to Glow button android example

Android Library to beautify your layouts with glowing buttons:
Glow button Android example
How to Glow button Android

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"
        />
Resouce : github 

No comments:

Post a Comment