﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Mon, 01 Sep 2014 05:39:15 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I'm pretty sure that your application is tested on Android 3.0+. On Android 3.0+, the icons in the menu are not shown by design. This is a design decision by Google.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The icons will show up if you promote an options menu item to be a toolbar button, and the icons will show up on Android 1.x/2.x devices.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I found similar discussion in &lt;a href="http://stackoverflow.com/questions/19750635/icon-in-menu-not-showing-in-android" target="_blank"&gt;here&lt;/a&gt; that might be useful. For more detail, you can read more at &lt;a href="http://android-developers.blogspot.in/2012/01/say-goodbye-to-menu-button.html" target="_blank"&gt;Android Developers Blog&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Sun, 31 Aug 2014 11:00:08 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;I did a short test with the TabActivity and the bug seems to be fixed.&lt;/p&gt;&lt;p&gt;When hitting the hardware button on the bottom left side of my device, the context menu pops up, but I only see the text and not the icons of the menu entries. Why?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&amp;nbsp;&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Mon, 25 Aug 2014 02:16:37 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I was able to reproduce the reported problem using Multi Page project template.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Crosslight development team found that the Option menu bindings are not correctly registered in TabActivity. The team is now working on this. It is submitted under CROS-527.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I will keep this thread updated with any news I heard from the team regarding CROS-527.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;&lt;strong&gt;Edited on August 26, 2014 11:03 PM&lt;br&gt;Reason: Update status of CROS-527&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I'd like to inform you that a nightly build hotfix is available which resolves the problem of Option menu bindings which are not correctly registered in TabActivity. The nightly build is available in &lt;a href="http://git.intersoftpt.com/projects/CROS/repos/updates/browse/Crosslight2_0_5000_76" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please have the nightly build hotfix evaluated on your end and let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Sun, 24 Aug 2014 11:35:14 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Unfortunately, this does not help. I don't need nested menus. I need the menu to work in a multi page scenario. Please, read my description in the last post. Let me know if my description is unclear or confusing. If it is easier for you, I can send you a sample project, too.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Thu, 21 Aug 2014 03:10:02 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I modified menu.xml file and use nested menu item approach to show action bar with icons.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The modified version is as follow.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&amp;gt;
  &amp;lt;item android:id="@+id/test3"
          android:icon="@drawable/icon"
          android:title="Test3"
          android:showAsAction="withText|ifRoom"/&amp;gt;
  &amp;lt;item android:id="@+id/test4"
        android:icon="@drawable/icon"
        android:title="Test4"
        android:showAsAction="withText|ifRoom"/&amp;gt;
  &amp;lt;item android:id="@+id/dummy"
        android:icon="@drawable/icon"
        android:showAsAction="always|withText"&amp;gt;
    &amp;lt;menu&amp;gt;
      &amp;lt;item android:id="@+id/new_game"
            android:title="About"
            android:icon="@drawable/icon"
            android:showAsAction="withText|ifRoom"/&amp;gt;
      &amp;lt;item android:id="@+id/help"
            android:icon="@drawable/icon"
            android:title="Help"
            android:showAsAction="withText|ifRoom"/&amp;gt;
      &amp;lt;item android:id="@+id/test"
            android:icon="@drawable/icon"
            android:title="Test"
            android:showAsAction="withText|ifRoom"/&amp;gt;
      &amp;lt;item android:id="@+id/test1"
            android:icon="@drawable/icon"
            android:title="Test1"
            android:showAsAction="withText|ifRoom"/&amp;gt;
    &amp;lt;/menu&amp;gt;
  &amp;lt;/item&amp;gt;
&amp;lt;/menu&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Thu, 14 Aug 2014 09:23:43 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;the original setup is still not working. I have a multi page application with different tabs. Each tab is a fragment. I added your code to the ViewModel, the BindingProvider and the Fragment of the first tab, but it is not working. I do not get an error, but when clicking on a menu item there is no connection to the ViewModel. The code of the different commands is not executed (no toast meassage appears).&lt;/p&gt;&lt;p&gt;Can you please check again with a multi page scenario.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Thu, 14 Aug 2014 08:02:58 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;in the menu.xml I also defined menu icons. When a menu item is shown in the action bar then the assigned&amp;nbsp;menu icon is shown there. When I hit the hardware button and the menu pops up from the bottom there is only the text of the menu items but not their icons.&lt;/p&gt;&lt;p&gt;Any chance to show the icons, too?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Tue, 12 Aug 2014 11:56:40 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;&lt;p&gt;I had not much time to test it, but on the first view it is exactly what I wanted to do.&lt;/p&gt;&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;p&gt;Thomas&lt;/p&gt;&lt;p&gt;PS: Where can I find these things in the documentation? If I had better tutorials or how-tos, I would have less support questions. Though your support is excellent and quick.&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Tue, 12 Aug 2014 06:23:41 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please try to do the following:&lt;/span&gt;&lt;/p&gt;&lt;ol style="color: #1f497d;"&gt;&lt;li&gt;Override MenuLayoutId and returns Resource.Menu.menu in the get accessor of SimpleActivity&lt;br&gt;&lt;pre&gt;protected override int MenuLayoutId
{
    get { return Resource.Menu.menu; }
}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;AddBinding in the SimpleBindingProvider for new_game and help menu&lt;br&gt;&lt;pre&gt;public SimpleBindingProvider()
{
    ...
    this.AddBinding("new_game", BindableProperties.CommandProperty, "NewGameCommand");
    this.AddBinding("help", BindableProperties.CommandProperty, "HelpCommand");
            
}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Last, provide the DelegateCommand for NewGameCommand and HelpCommand in the SimpleViewModel&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I enclosed the modified project as reference. Please let us know whether this help or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight Android Option Menu</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-Android-Option-Menu/</link><pubDate>Fri, 08 Aug 2014 08:58:10 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Crosslight Support,&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;With plain Xamarin Android I had about 5 minutes to manage it. With Crosslight I failed.&lt;/p&gt;&lt;p&gt;The attached file "Screenshot_2014..." shows the plain Xamarin app and the result I want to achieve.&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>