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

OnClickListner on menu icons #23

Open
imbadal opened this issue Mar 13, 2018 · 3 comments
Open

OnClickListner on menu icons #23

imbadal opened this issue Mar 13, 2018 · 3 comments

Comments

@imbadal
Copy link

imbadal commented Mar 13, 2018

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.

@Hitomis
Copy link
Owner

Hitomis commented Mar 13, 2018

circleMenu.setOnMenuSelectedListener(new OnMenuSelectedListener() {

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

            }

        });

@RajniLakshmi
Copy link

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

@sanjum01
Copy link

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

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

4 participants