lusccc / SpringFloatingActionMenu

Apache License 2.0
368 stars 71 forks source link

Big Bug! #4

Closed tellfa closed 8 years ago

tellfa commented 8 years ago

Hi man, I have a strange problem in this library!!! I didn't open the menu, but click on application show me menu items title in toast! please show below image : quickmemo _2016-04-17-11-37-48

please fix this big bug ;) Thanks

lusccc commented 8 years ago

My bad, I will fix it soon.

tellfa commented 8 years ago

When you put new update ?

adeeljavedch commented 8 years ago

@tellfa for now there is a way to handle this problem

in your onClick listener

check if menu is open then perform onclick task

if(build.isMenuOpen()) { .... }

pishguy commented 8 years ago

@adeel-quantumcph your code as if(build.isMenuOpen()) doesnt work on sample code, how to do that?

adeeljavedch commented 8 years ago

@tux-world like this

  springFloatingActionMenu.addMenuItem(R.color.green,drawableId,"label", R.color.white,50, new View.OnClickListener() {
                         @Override
                         public void onClick(View v) {

                      if(build.isMenuOpen()) {

                              build.hideMenu();

                               //do something here

                          }

                      }
                   });
pishguy commented 8 years ago

@adeel-quantumcph Thanks, could you help me, how can i disable moving menu on screen?

tellfa commented 8 years ago

@adeel-quantumcph thanks man :heart:

lusccc commented 8 years ago

Fixed by @brucetoo. Thanks~