Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/poppsya/fillingbutton

🔥Replace typical onLongClickListener with this library!
https://github.com/poppsya/fillingbutton

android android-button android-custom-view android-library android-ui android-widget androidstudio button custombutton customview kotlin kotlin-android kotlin-language kotlin-lib kotlin-library library view

Last synced: about 2 months ago
JSON representation

🔥Replace typical onLongClickListener with this library!

Awesome Lists containing this project

README

        

# FillingButton
[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-FillingButton-green.svg?style=flat )]( https://android-arsenal.com/details/1/7598 )
[![jitpack badge](https://jitpack.io/v/Devit951/FillingButton.svg)](https://jitpack.io/#Devit951/FillingButton)
[![badge android platform](https://camo.githubusercontent.com/4e7c3559fec3db6e04cd6d800d00fe6515f75260/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d616e64726f69642d627269676874677265656e2e737667)](https://developer.android.com/)
[![API 16+](https://img.shields.io/badge/API-16%2B-orange.svg?style=flat)](https://android-arsenal.com/api?level=16)
[![GitHub license](https://img.shields.io/github/license/dcendents/android-maven-gradle-plugin.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)

![Build with love](https://forthebadge.com/images/badges/built-with-love.svg)

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

# Sample
![20190328_105032](https://user-images.githubusercontent.com/21290800/55136168-8492f300-514f-11e9-82dd-2edc218a2e90.gif)

# Added new type of button **InternetSensableFillingButton**
![20190427_124552](https://user-images.githubusercontent.com/21290800/56846643-10cd3d00-68eb-11e9-883c-f95484056790.gif)

# Added directions of filling, here is first and the third button has RightToLeftDirection:
![20190516_105414](https://user-images.githubusercontent.com/21290800/57829847-b7f61380-77c9-11e9-8d5c-3b8f9e67d9f6.gif)

# First FillingButton has TopToBottomFillingDirection and second FilligButton has BottomToTopFillingDirection
![20190521_105157](https://user-images.githubusercontent.com/21290800/58071581-9c6a7e80-7bb6-11e9-8a6e-516d015cd232.gif)

## Usage a simple FillingButton
```

```

## Usage a simple InternetSensableFillingButton

```

```

## Using FillingButton fill directions
You can change these directions in runtime.
```
fillingButton.direction = RightToLeftFillingDirection();
fillingButton.direction = LeftToRightFillingDirection();
fillingButton.direction = TopToBottomFillingDirection();
fillingButton.direction = BottomToTopFillingDirection();
```

## 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:1.2'
}
```