I found this question, and then I realized that the Java code is not working on C#, I have no idea how to implement this code :
amvMenu.setOnMenuItemClickListener(new ActionMenuView.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem menuItem) {
return onOptionsItemSelected(menuItem);
}
});
It results the error :
Cannot create an instance of the abstract class or interface 'ActionMenuView.IOnMenuItemClickListener
My code so far :
tbchild.SetOnMenuItemClickListener(new ActionMenuView.IOnMenuItemClickListener() {
public bool onMenuItemClick(IMenuItem menuItem)
{
return OnOptionsItemSelected(menuItem);
}
});
Thanks