Xamarin.Android display dropdown menu when Home Button on ActionBar is clicked -



Xamarin.Android display dropdown menu when Home Button on ActionBar is clicked -

i need display dropdown menu showing logout alternative when home button on actionbar clicked.so overided method

public override bool onoptionsitemselected (imenuitem item) { if (item.itemid == android.resource.id.home) { openoptionsmenu (); // startactivity (typeof(mainactivity)); } homecoming base.onoptionsitemselected (item); }

but debugger prints optionmenu empty.how can populate optionmenu info items?

android android-actionbar xamarin

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -