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

Php operator `break` doesn't stop while -

ubuntu - Bash Script to Check That Files Are Being Created -

vim: Search & replace -