Iโm an Android Engineer currently working at Joyn on Android TV apps.
I like contributing to open source projects and build helpful libraries here on Github.
Follow me on:
Latest blog post:
A toolbar that morphs from a FloatingActionButton
License: Apache License 2.0
Iโm an Android Engineer currently working at Joyn on Android TV apps.
I like contributing to open source projects and build helpful libraries here on Github.
Follow me on:
Latest blog post:
If one does not set a menu in layout xml, but builds it and sets it programmatically, the app will crash, because the library calls removeAllViews()
for the FloatingToolbar but it is null because there was no menu set before.
If the FAB is anchored to an AppBarLayout, it's position in the Y-axis can change due to scrolling.
Currently, the FAB returns to the last position from where it was clicked.
FloatingToolbar.Behavior needs to account these use cases:
I want to use FloatingToolBar in a DrawerLayout,
but it causes "Error inflating class com.github.rubensousa.floatingtoolbar.FloatingToolbar" in XML file.
How can i solve it?
FAB goes to the wrong place after collapsed toolbar.
(Not on every devices, until now I haven't seen it)
1.http://coolapk.com/r/2vuz
2.http://image.coolapk.com/feed/2016/0804/577017_1470283978_9899.gif
These were reported by different users.
How to add text view above the each menu in FloatingToolbar
When I use "findViewById" to get instance,the compiler give me an error "An instance of type 'android.view.View' can not be of type 'com.github.rubensousa.floatingtoolbar.FloatingToolbar' ".I replaced the library version of sample with 1.4.1 and got the same error. My English is not good, please forgive me.
Thanks in advance
I had an issue with the library when I needed to do this, because the old listener wasn't removed properly for some reason.
I added this in my work and since then, the morph listeners work just as I want them to.
The thing don't want to have a global morph listener and re-add it or remove it when needed.
Thanks in advance
hey man
I think there is a bug .when click the fab open the bottom bar ,then scroll the recyclerview ,the FAB will go to a wrong place .
also ,sometimes the FAB can't show icon~ how to post a picture?
I think items should not be affected by the real view visibility flag.
When I set something like this
android:visibility="gone"
The toolbar is gone but even the items are too. There should be a separate flag for items visibility or something
When inserting FloatingToolbar
in a xml file, it throws the following:
java.lang.NoSuchFieldError: floatingtoolbar_start_elevation at com.github.rubensousa.floatingtoolbar.FloatingToolbar.<init>(FloatingToolbar.java:138) at com.github.rubensousa.floatingtoolbar.FloatingToolbar.<init>(FloatingToolbar.java:93)
Also, there's a suggestion: I was looking at FloatingToolbar.addMenuItems()
and realized that only images are added. It would be useful if could check if there is an item.getTitle()
and add it as a TextView
.
Hi,
First, thanks for your contribution. I tried 2 different libs for achieving the wanted FAB morph effect, but both were a bit buggy. I want to try your implementation.
Reading the example provided I don't quite get it how the menu items are populated in the toolbar?
Thank you in advance,
Regards, Greg.
if i click outside the bottom floating toolbar bar, the fab could show automatically, it could be perfect
Thanks for your great lib.And I have a question about how to add badge for menu Item.I have checked your code,MenuLayout only add menu icon.Will you support it next version?
RT
Elevation should be animated from 6dp to 8dp on reveal and from 8dp to 6dp on unreveal.
Hi,
Is there a possibility to get handling of "ifRoom" menu item mode like in regular menus on ToolBar?
The app could be used on devices with different screen sizes and hence you cannot know easily how to layer the items in the menu.
Hi,
I wanted to place a Spinner on the Toolbar, but it is simply not shown. I do have menu as well.
`
<com.github.rubensousa.floatingtoolbar.FloatingToolbar
android:id="@+id/floatingToolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="bottom"
app:floatingMenu="@menu/menu_edit_mode"
app:floatingAutoHide="false"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android" >
<Spinner
android:id="@+id/add_spinner"
android:layout_width="50dp"
android:layout_height="match_parent" />
</com.github.rubensousa.floatingtoolbar.FloatingToolbar>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|start"
android:layout_margin="@dimen/fab_margin"
app:fabSize="mini"
android:src="@drawable/ic_mode_edit_white_24dp" />
`
Without the id nor the position of the item, it is really hard to know exactly which button was clicked.
The current FloatingToolbarMenuBuilder sets 0 as the item id always.
I didn't set app:floatingMenu in xml
Just in code:
FloatingToolbar.setMenu(menu)
Result: NullPointException(line: 278) mMenuLayout.removeAllViews()
Hi, I'm setting up transparent view to click & dismiss the toolbar; it appears & disappears with the FloatingToolbar. I'm using a MorphListener, and it looks like onMorphEnd is being called twice when I open the FloatingToolbar. The other callbacks only fire once.
It isn't urgent and isn't causing any troubles for me, but I figured it should be reported.
Initially, the FAB is in the correct location within the layout. One the FAB is pressed, the animation takes it to the opposite corner (Top left) where it continues to stay.
API Level: 23
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.