Floating-ArcMenu icon indicating copy to clipboard operation
Floating-ArcMenu copied to clipboard

OnClickListener

Open svvaez opened this issue 9 years ago • 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...

svvaez avatar Mar 05 '17 12:03 svvaez

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

BrotherV avatar Mar 06 '17 09:03 BrotherV

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

BrotherV avatar Mar 06 '17 10:03 BrotherV

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

BrotherV avatar Mar 07 '17 18:03 BrotherV

Hi,Thank you for your attentionBest regardsS.VaezSent from my Huawei Mobile-------- Original Message --------Subject: Re: [BrotherV/Floating-ArcMenu] OnClickListener (#1)From: Mohsen Hatami To: BrotherV/Floating-ArcMenu CC: svvaez ,Author 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

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/BrotherV/Floating-ArcMenu","title":"BrotherV/Floating-ArcMenu","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/BrotherV/Floating-ArcMenu"}},"updates":{"snippets":[{"icon":"PERSON","message":"@BrotherV in #1: 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\r\n"}],"action":{"name":"View Issue","url":"https://github.com/BrotherV/Floating-ArcMenu/issues/1#issuecomment-284811712"}}}

svvaez avatar Mar 08 '17 14:03 svvaez