Crosslight Android Option Menu

9 replies. Last post: September 1, 2014 5:39 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

today I was trying to create a simple option menu. Which means a menu which appears when I hit the hardware button on the bottom left side of my android phone.

With plain Xamarin Android I had about 5 minutes to manage it. With Crosslight I failed.

The attached file "Screenshot_2014..." shows the plain Xamarin app and the result I want to achieve.

The Crosslight project is attached as "CrosslightOptionMenu.zip" and is based on the blank project template. I just added some code to the SimpleActivity class and in the Resource folder I added a menu folder and a menu.xml file which contains the menu definition. When starting the app the "OnCreateOptionsMenu" method is hit but the new menu definiton is not recognized within the Resource class. See "optionmenu" attachment. I tried some workarounds like placing the menu under the Layout folder or entering the resource id of the menu directly but had no success with that.

Please, try to reproduce the problem. Originally I wanted to achieve this with a "TabActivity", so make sure that every activity is checked. This is very urgent, so it would be nice to get a hotfix based on Crosslight 2 Update 3. Further I need a sample how to navigate to another activity when hitting an option menu entry. Could you please add this to my sample provided as attachment.

Thanks,

Thomas

All times are GMT -5. The time now is 1:36 AM.
Previous Next