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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -