Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnClickListener #1

Open
svvaez opened this issue Mar 5, 2017 · 4 comments
Open

OnClickListener #1

svvaez opened this issue Mar 5, 2017 · 4 comments

Comments

@svvaez
Copy link

svvaez commented Mar 5, 2017

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...

@BrotherV
Copy link
Owner

BrotherV commented Mar 6, 2017

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

@BrotherV
Copy link
Owner

BrotherV commented Mar 6, 2017

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

@BrotherV
Copy link
Owner

BrotherV commented Mar 7, 2017

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

@svvaez
Copy link
Author

svvaez commented Mar 8, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants