This library has been deprecated as of April 8th, 2015
Use https://github.com/makovkastar/FloatingActionButton or https://github.com/Clans/FloatingActionButton
© 2014 Faiz Malkani
[DEPRECATED]
License: MIT License
This library has been deprecated as of April 8th, 2015
Use https://github.com/makovkastar/FloatingActionButton or https://github.com/Clans/FloatingActionButton
© 2014 Faiz Malkani
I have two drawables as seen below, i'd LOVE to animate them by rotating the + and cross fading the X, is something like this possible?
Hellooo. I want to ask how to inflate layout (relativelayout or linearlayout) into floating button?
or how to make linear or relative layout make floating like FAB?
thanks before... :D
What amount of work is needed to make it compatible with ICS?
I can't create Fab runtime...is it supported?
I'm confused about this! it is not working.. any help please?
There's an error in the library right inside the onTouchEvent
method. It always jumps into the else-clause, because of this the Button is always tinted with the darkened color.
Fix:
Change return super.onTouchEvent(event);
to return true
. This notifies the system that the event was handled and thus the method can retrieve the next Action. (Like MotionEvent.ActionUp
)
The Floating Action Button disappears when we scroll up and down fast.
To reproduce this behaviour, simply add more items in the sample application and scroll down. Before the scroll stop, scroll up.
Tested with Nexus 5 using version 4.4.4.
Please add FAB to the Maven Central, makes it easier to manage dependencies with gradle.
I was wondering if the lib is working with api level 14 (ICS) since in the description is written that's a lib for JellyBean and KitKat
Anyone tried with a real device?
Thanks
I get an error saying:
Error:(3, 0) Could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':FloatingActionButton'.
I can't find a fix for it, what do I do?
I tried the closed issue that said to import it as a module (File>Import Module...) and that didn't work either.
If you tie an ontouch listener to a view and listen for ACTION_DOWN [fab.hide(true)] and ACTION_UP [fab.hide[false]) and repeatedly touch the screen the fab will inch towards the bottom of the screen and never return to its' original position.
This causes the fab action button to be no longer accessible to users who are scrolling around a lot or very quickly.
Can you add XML attributes, so you have not to define color and drawable programmatically?
I'm trying to move the button programmatically, which works fine, but I'm running into an issue when querying getLocationOnScreen(). The returning values appear to be off by half of the button width.
You should be able to see the issue with the following code:
// Set the button location
int mLocation[] = new int[2];
mButton.setX(200);
mButton.getLocationOnScreen(mLocation);
.
.
// Elsewhere (triggered in an onClick callback), try:
mButton.setX(mLocation[0]);
When I do this, the button jumps to the right, in error by half the width of the button.
I believe the error lies in the getLocation() measurement and not the setX() call, as I can set the x-location to the edge of the screen correctly.
Do you have any idea what would cause an error in the getLocation measurement? I'm guessing there's an issue in the widget correctly reporting it's size?
Any help would be greatly appreciated. And, thank you for the library.
I suggest renaming color to colorBackground.
Hi i am a novice dev here, Can i ask how do i add this to my project in Eclipse ?
Currently there stands no way to use this with the new Recycler View and have the FAB hide itself upon a scroll using "attachToListView"
I love your app because I am searching a easy way to implement this new style. I tried your apk and I see that the circle button hide with a padding above the navigation bar.
I see that google+ app have a motion blur effect (but I am not sure if it is caused by the speed of google+ floating button because it is faster than your floating button).
Is possible to change the fab height? (new material design has a action bar with more height)
Where can I download the jar, or is there some repository? Can I add it directly to the gradle dependencies?!
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.