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

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -