Ecosyste.ms: Awesome

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

https://github.com/bowyer-app/FabTransitionLayout

Deprecated
https://github.com/bowyer-app/FabTransitionLayout

Last synced: 1 day ago
JSON representation

Deprecated

Lists

README

        

# FabTransitionLayout
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FabTransitionLayout-green.svg?style=flat)](https://android-arsenal.com/details/1/2541)

Provides the Floating Action Button Transition [as specified in the Material Design Guide](http://www.google.com/design/spec/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) in a simple library.

It is strongly inspired by [fab-toolbar](https://github.com/bowyer-app/fab-toolbar)

| bottomsheet | toolbar | CoordinatorLayout|
| :---------------: |:---------------:| :---------------:|
|![bottomsheet](https://github.com/bowyer-app/FabTransitionLayout/blob/master/art/bottomsheet.gif)|![bottomsheet](https://github.com/bowyer-app/FabTransitionLayout/blob/master/art/toolbar.gif)|![CoordinatorLayout](https://github.com/bowyer-app/FabTransitionLayout/blob/master/art/CoordinatorLayout.gif)|

Usage
====
### build.gradle

```
repositories {
jcenter()
}

dependencies {
compile 'com.bowyer.app:fabtransitionlayout:0.4.0@aar'
}
```

### Layout XML
#### BottomSheetLayout
```xml


```
#### FooterLayout
```xml



```

### Set up

```java
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
initListView();
//set floating button to FabToolbar
mBottomSheetLayout.setFab(mFab);
}
```

### Show Hide

```java
//expand FabToolbar
mBottomSheetLayout.expandFab();

//if mBottomSheetLayout is expand,mBottomSheetLayout contract. else fab slide out.
mBottomSheetLayout.slideOutFab();

//fab slide in
mBottomSheetLayout.slideInFab();

```

# Credits
This library use following libraries.
* [CircularReveal](https://github.com/ozodrukh/CircularReveal)

# Code Style

Follow [SquareAndroid](https://github.com/square/java-code-styles/blob/master/configs/codestyles/SquareAndroid.xml).

Feature
====
- [ ] A floating action button transforming into a single sheet of material

License
--------
```
Copyright (c) 2015 Bowyer
Released under the MIT license
http://opensource.org/licenses/mit-license.php
```