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

https://github.com/tellh/floatingactionbuttonpro

Extend from FloatingActionButton for Android
https://github.com/tellh/floatingactionbuttonpro

Last synced: 8 months ago
JSON representation

Extend from FloatingActionButton for Android

Awesome Lists containing this project

README

          

# FloatingActionButtonPro
Extend from [FloatingActionButton](https://github.com/makovkastar/FloatingActionButton)
##usage
add this in your build.gradle(app module):
```
dependencies {
compile 'com.tellh:library:1.0'
}
```
And add this to your build.gradle(application root dir):
```
allprojects {
repositories {
jcenter()
maven {
url 'https://dl.bintray.com/tellh/maven/'
}
}
}
```
##Features:
* fab with scale transform animation:

![](https://github.com/TellH/FloatingActionButtonPro/blob/master/gif%2Flv_scale.gif)

xml:

```

```
* in RecyclerView , you can use the smoothly scale transform during dragging:

![](https://github.com/TellH/FloatingActionButtonPro/blob/master/gif%2Frv_scale.gif)

xml is the same above. But some difference in java code.
```
fab.attachToRecyclerView(recyclerView,null,null,true);//pass the ture flag if you need this effect.
```

* in RecyclerView , you can also use the smoothly translate transform during dragging:

![](https://github.com/TellH/FloatingActionButtonPro/blob/master/gif%2Frv_translation.gif)

xml:
```

```
java code:
```
fab.attachToRecyclerView(recyclerView,null,null,true);//pass the ture flag if you need this effect.
```