BrotherV/Floating-ArcMenu

OnClickListener

Opened this issue · 4 comments

I've used this library as follows:

    menu.showTooltip(true);
    menu.setToolTipBackColor(Color.TRANSPARENT);
    menu.setToolTipCorner(6f);
    menu.setToolTipPadding(2f);
    menu.setToolTipTextColor(Color.BLACK);
    menu.setAnim(300, 300, ArcMenu.ANIM_BOTTOM_TO_DOWN, ArcMenu.ANIM_BOTTOM_TO_DOWN,
            ArcMenu.ANIM_INTERPOLATOR_ACCELERATE_DECLERATE, ArcMenu.ANIM_INTERPOLATOR_ACCELERATE_DECLERATE);
    menu.menuIn();
    final int itemCount = ITEM_DRAWABLES.length;
    for (int i = 0; i < itemCount; i++) {
        ImageView item = new ImageView(this);
        item.setImageResource(ITEM_DRAWABLES[i]);
        final int position = i;
        menu.addItem(item, STR[i], new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(ActMain.this, STR[position],
                        Toast.LENGTH_SHORT).show();
           
            }
        });
    }

but OnClickListener is not called...

Are you sure? I checked it again but it works well.
did toast method show anything when you clicked on children?

Hello again
why did you use menuIn() method in your program?
delete this line, it'll be ok.

Hello again, I added repository for this library, you can add in your project dependencies but don't remember to set minSdk 14 in build.gradle