Crosslight Android Fragment Menu

9 replies. Last post: March 5, 2015 10:03 AM by Thomas Albert
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

I created a new Crosslight solution (Android only) with the project wizard in Visual Studio. As template I used the "Navigation drawer".

Next I created a "menu" folder in the "Resource" folder of the Android project. There I added a new menu xml file with my required menu definition (main menu with the three dots and a sub menu 'delete all').

Within the app I have two fragments. One for the "Simple Page" and one for the "About this app" page. What I what to achive is to apply the menu only to the "About this app" page. The other fragment should have no menu.

So I assigned the menu in the AboutFragment with an override of the MenuLayoutId. To see if the menu is working I then created a binding in the AboutBindingProvider.

After starting the app the result is somehow different as I expected.

First there is no menu on the simple page (ok). When navigating to the about page the menu shows up (ok). Clicking on the menu shows no submenu (not ok). Doing a long click on the menu shows an empty menu entry (not ok).

What am I doing wrong? I used the latest version of Crosslight (Crosslight3_0_5000_184). A sample is attached.

When I attach the menu to an activity it works as expected. But when I do a long click there is also an empty menu item shown.

Thanks,

Thomas

1 attachment
All times are GMT -5. The time now is 9:33 PM.
Previous Next