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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

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