Coder Social home page Coder Social logo

Comments (9)

chalup avatar chalup commented on August 23, 2024

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.

vacvac avatar vacvac commented on August 23, 2024

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.

chalup avatar chalup commented on August 23, 2024

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.

vacvac avatar vacvac commented on August 23, 2024

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.

chalup avatar chalup commented on August 23, 2024

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.

vacvac avatar vacvac commented on August 23, 2024

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.

chalup avatar chalup commented on August 23, 2024

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.

nkbuth avatar nkbuth commented on August 23, 2024

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.

chalup avatar chalup commented on August 23, 2024

@NathanBFS I recommend using OnFloatingActionsMenuUpdateListener if possible.

from android-floating-action-button.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.