FillingButton

Additional

Language
Kotlin
Version
v1.2 (Apr 4, 2019)
Created
Mar 28, 2019
Updated
Apr 4, 2019
Owner
Ildarov (Devit951)
Contributor
Ildarov (Devit951)
1
Activity
Badge
Generate
Download
Source code

Announcement

FillingButton

Replace typical onLongClickListener with that library! It's the new way to handle onLongClickListener on buttons.

Sample

Usage

 <com.github.devit951.fillingbutton.FillingButton
        android:id="@+id/fb_first"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="BUTTON"
        android:background="@color/colorAccent"
        app:fillColor="@color/colorPrimaryDark"
        app:fillDuration="500"/>

List of xml attributes:

app:fillColor=(color) -> Changes foreground color of filling
app:fillAlpha=(integer) -> Changes alpha of foreground color filling
app:fillDuration=(integer) -> Changes fill animation duration

Setup

allprojects {
  repositories { 
    maven { url 'https://jitpack.io' } 
  }
}
  
dependencies {  
  implementation 'com.github.Devit951:FillingButton:v1.0'
}