How do you use setInitialMenuItem for Google Glass menus, and do you have example code? -
google glass online documentation mentions method minimal documentation:
https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/view/menuutils
should called onoptionsitemselected or oncreateoptionsmenu?
any example code appreciated.
you should call method oncreateoptionsmenu or onprepareoptionsmenu in order set menu item visible when user asks menu displayed. if call onoptionsitemselected, late, since menu displayed , interacted with.
Comments
Post a Comment