Floating Action Button Toolbar
==============================
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-fab--toolbar-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1740)
Provides the Floating Action Button Toolbar [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.
![demo](https://cloud.githubusercontent.com/assets/3596362/7158276/a4883268-e378-11e4-9918-78d071ac7a97.gif)
Usage
====
```xml
<com.github.alexkolpa.fabtoolbar.FabToolbar
android:id="@+id/fab_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
tb:tb_animation_duration="500"
tb:tb_button_gravity="end"
tb:tb_container_gravity="center"
>
<ImageView
android:id="@+id/attach"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_attachment_white_48dp"
android:layout_marginLeft="@dimen/icon_margin"
android:layout_marginRight="@dimen/icon_margin"
/>
<!-- More buttons can be added here -->
</com.github.alexkolpa.fabtoolbar.FabToolbar>
```
To hide or show the Toolbar, simply call `hide()` and `show()`.
```java
FabToolbar fabToolbar = ((FabToolbar) findViewById(R.id.fab_toolbar));
findViewById(R.id.attach).setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
fabToolbar.hide();
}
});
```
Adding dependencies
=====================
Gradle:
```groovy
dependencies {
compile 'com.github.alexkolpa:floating-action-button-toolbar:0.5.1'
}
```
Maven:
```xml
<dependency>
<groupId>com.github.alexkolpa</groupId>
<artifactId>floating-action-button-toolbar</artifactId>
<version>0.5.1</version>
</dependency>
```
License
--------
The MIT License (MIT)
Copyright (c) 2015 Alex Kolpa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
fab-toolbar,android5.0-MaterialDesigner设计效果,滑动显示和隐藏的toolbar
共52个文件
png:22个
xml:12个
gradle:4个
需积分: 9 104 下载量 81 浏览量
2015-10-13
13:27:29
上传
评论 1
收藏 177KB ZIP 举报
温馨提示
fab-toolbar,android5.0-MaterialDesigner设计效果,滑动显示和隐藏的toolbar
资源推荐
资源详情
资源评论
收起资源包目录
fab-toolbar-master.zip (52个子文件)
fab-toolbar-master
gradlew 5KB
settings.gradle 30B
library
src
main
AndroidManifest.xml 86B
res
drawable-hdpi
ic_add_white_24dp.png 223B
ic_launcher.png 9KB
drawable-mdpi
ic_add_white_24dp.png 174B
ic_launcher.png 5KB
layout
fab_toolbar.xml 759B
drawable-xxhdpi
ic_add_white_24dp.png 222B
ic_launcher.png 19KB
drawable-xhdpi
ic_add_white_24dp.png 198B
ic_launcher.png 14KB
values
colors.xml 101B
attr.xml 537B
strings.xml 71B
dimens.xml 188B
drawable-xxxhdpi
ic_add_white_24dp.png 269B
java
com
github
alexkolpa
fabtoolbar
FabToolbar.java 6KB
.gitignore 7B
build.gradle 995B
proguard-rules.pro 661B
LICENSE 1KB
gradle
wrapper
gradle-wrapper.properties 232B
gradle-wrapper.jar 49KB
README.md 3KB
sample
src
main
AndroidManifest.xml 606B
res
drawable-hdpi
ic_launcher.png 9KB
drawable-mdpi
ic_launcher.png 5KB
layout
activity_sample.xml 2KB
drawable-xxhdpi
ic_launcher.png 19KB
ic_attachment_white_48dp.png 1KB
ic_reply_white_48dp.png 1KB
ic_event_note_white_48dp.png 724B
drawable-xhdpi
ic_launcher.png 14KB
ic_attachment_white_48dp.png 957B
ic_reply_white_48dp.png 722B
ic_event_note_white_48dp.png 532B
values
colors.xml 98B
strings.xml 178B
styles.xml 107B
dimens.xml 65B
drawable-xxxhdpi
ic_attachment_white_48dp.png 2KB
ic_reply_white_48dp.png 1KB
ic_event_note_white_48dp.png 966B
java
com
github
alexkolpa
fabtoolbar
sample
SampleActivity.java 1KB
.gitignore 7B
build.gradle 887B
proguard-rules.pro 661B
gradlew.bat 2KB
gradle.properties 640B
.gitignore 300B
build.gradle 479B
共 52 条
- 1
资源评论
Ricky-Android
- 粉丝: 20
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功