Comments (9)
It's probably related to the way I set up animations, I'll take a closer look at this.
As a workaround you can add expand()
call to the message queue instead of calling it directly:
final FloatingActionsMenu menu = (FloatingActionsMenu) findViewById(R.id.multiple_actions);
menu.post(new Runnable() {
@Override
public void run() {
menu.expand();
}
});
from android-floating-action-button.
very nice, thanks. Just one more question, I want to known when user click on FloatingActionsMenu. I try menu.setOnClickListener{...} seem not working, can you check it ?
from android-floating-action-button.
It won't work, because internally menu creates a FloatingActionButton, which has it's own onClickListener and calls FloatingActionsMenu.toggle on clicking.
Can you explain in details what are you trying to achieve, i.e. what would you put in your onClickListener? I'm asking, because I wonder what will be the optimal API (there are at least few options).
from android-floating-action-button.
I just want hide FloatAction menu when the menu is collapse. I'll change another thing. Your FloatActionMenu just expande a direction (left, right, top, bottom), right? So, I want to expande two direction TOP and LEFT or TOP and RIGHT. What solution for me?
from android-floating-action-button.
I'd say you need some kind of onCollapsed/onExpanded callbacks, but I'm not
sure if they should trigger before or after the animation. Please note that
this feature is not a priority for me, so if you need it urgently,
implement it yourself (and obviously send me a pull request).
The other request, if I understand it correctly, is about menu expanding to
a grid of buttons. That's not going to happen, at least not in a
foreseeable future.
On Dec 7, 2014 2:15 PM, "vacvac" [email protected] wrote:
I just want hide FloatAction menu when the menu is collapse. I'll change
another thing. Your FloatActionMenu just expande a direction (left, right,
top, bottom), right? So, I want to expande two direction TOP and LEFT or
TOP and RIGHT. What solution for me?—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from android-floating-action-button.
I'll try it. So, how we are making border (and set color for that border if can) for FloatActionButton ?
from android-floating-action-button.
Borders for FAB is not something I intend to work on.
On Dec 7, 2014 5:41 PM, "vacvac" [email protected] wrote:
I'll try it. So, how we are making border (and set color for that border
if can) for FloatActionButton ?—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from android-floating-action-button.
I know it has been a long time since this was asked, but I can answer the second question.
You can get the menu button to set an onclick to it via:
FloatingActionButton FAB = (FloatingActionButton) findViewById(R.id.fab_expand_menu_button);
from android-floating-action-button.
@NathanBFS I recommend using OnFloatingActionsMenuUpdateListener
if possible.
from android-floating-action-button.
Related Issues (20)
- Bottom app bar
- How to expand on longClick?? HOT 2
- how to close FloatingActionMenu when Click on Fab button on FabMenu? HOT 1
- add border width border color
- Update Request HOT 5
- Sample code for using library HOT 1
- Drawable **** has unresolved theme attributes
- XML files don't work
- Layout overlaping the fab title. Can anyone help me with this. HOT 1
- Can't add icon to the main fab icon button
- How do I change the size other than normal , mini HOT 1
- How to change color of Floating Action Menu on Normal State Programatically ? HOT 1
- support HOT 1
- How to onclick on Menu button? HOT 1
- Center in layout HOT 1
- Expand Direction to left
- feature requirment HOT 1
- AndroidX HOT 1
- Error inflating class com.getbase.floatingactionbutton.FloatingActionsMenu
- Widget from web
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-floating-action-button.