CircleMenu
CircleMenu copied to clipboard
OnClickListner on menu icons
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.
circleMenu.setOnMenuSelectedListener(new OnMenuSelectedListener() {
@Override
public void onMenuSelected(int index) {
if (index == 0){}
if (index == 1){}
if (index == 2){}
......
}
});
I'm unable to start new activity on clicking the submenus. What to write inside the if() method? Using Intent does not work.
did you figure it out? @RajniLakshmi i am also trying to start new activity after we click any icon in circle menu..