Closed GoogleCodeExporter closed 8 years ago
Hello,
I just tried on XE16.2 and have not been able to reproduce this issue. Could
you try and let us know?
Also, could you explain what you are trying to achieve? There might be better
workaround for your use-case such as checking the "position" in your
OnItemClickListener and only opening the options menu when necessary.
Best,
Alain
Original comment by ala...@google.com
on 29 Apr 2014 at 8:12
Hello Alain,
You will find attached a project example that should allow you to reproduce my
issue.
To reproduce:
1. Build and deploy the project on glass
2. on the glass swipe to "Hello 2" screen
3. Tap, the menu will appear
4. Swipe down for back
5. Go to another screen
6. Tap for menu, nothing happens
7. Go back to "Hello 2" screen
8. Tap for menu, nothing happens as there is no items in the menu (removed on
step 6).
I'm trying to display some information in several screens about a previously
scanned product in a CardScrollView. For example I will have:
Card 1: General product info
Card 2: Allergens
Card 3: Expiration date...
If I want a specific action related to the "Expiration date" screen, I need to
implement something like I did. Have you any better idea ?
Salutations de Suisse ;-)
Jean-Jérôme
Original comment by jj.Sarra...@gmail.com
on 12 May 2014 at 12:30
Attachments:
Hello,
Seems your use-case should be handled differently by going with one of those
two options:
* Check the position in the OnItemClickListener#onItemClick method and only open the options menu when it is equal to 2.
* Do not clear the menu in "onPrepareOptionsMenu" but instead set the menu as visible and enabled when required (check the Timer's MenuActivity to see how it can be done: https://github.com/googleglass/gdk-timer-sample/blob/master/src/com/google/android/glass/sample/timer/MenuActivity.java#L99).
Best,
Alain
Original comment by ala...@google.com
on 13 May 2014 at 10:50
Original issue reported on code.google.com by
jj.Sarra...@gmail.com
on 28 Apr 2014 at 9:28