CircleMenu icon indicating copy to clipboard operation
CircleMenu copied to clipboard

OnClickListner on menu icons

Open imbadal opened this issue 6 years ago • 3 comments

Hi Hitomis, I want to add onClickListner on the sub-menus. I added the following code but it is not working.

Intent intent1 = new Intent(this,Activity2.class); this.startActivity(intent1); return true;

Please help me to add the onClickListner.

imbadal avatar Mar 13 '18 07:03 imbadal

circleMenu.setOnMenuSelectedListener(new OnMenuSelectedListener() {

            @Override
            public void onMenuSelected(int index) {
                    if (index == 0){}
                    if (index == 1){}
                    if (index == 2){}
                    ......

            }

        });

Hitomis avatar Mar 13 '18 07:03 Hitomis

I'm unable to start new activity on clicking the submenus. What to write inside the if() method? Using Intent does not work.

RajniLakshmi avatar Jul 29 '18 07:07 RajniLakshmi

did you figure it out? @RajniLakshmi i am also trying to start new activity after we click any icon in circle menu..

sanjum01 avatar Dec 19 '18 17:12 sanjum01