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: about 1 month ago
JSON representation
Deprecated
- Host: GitHub
- URL: https://github.com/bowyer-app/FabTransitionLayout
- Owner: bowyer-app
- License: other
- Created: 2015-08-04T13:16:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T16:24:09.000Z (almost 7 years ago)
- Last Synced: 2024-08-02T01:25:12.296Z (4 months ago)
- Language: Java
- Homepage:
- Size: 2.39 MB
- Stars: 465
- Watchers: 15
- Forks: 68
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-github-android-ui - FabTransitionLayout - 浮动操作按钮转换 (FAB)
- awesome-android-ui - https://github.com/bowyer-app/FabTransitionLayout
- awesome - FabTransitionLayout - Deprecated (etc)
- awesome - FabTransitionLayout - Deprecated (etc)
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 materialLicense
--------
```
Copyright (c) 2015 Bowyer
Released under the MIT license
http://opensource.org/licenses/mit-license.php
```