Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Built-in ScrollView that scrolls with head motion

Speaking "ok glass" brings up a command list that automatically scrolls based on the user's head motion.

Is there a built-in UI element in the GDK that implements this? Or will I have to write my own code that uses sensors?

like image 860
Dmitry Brant Avatar asked Feb 05 '14 16:02

Dmitry Brant


1 Answers

I tried reimplementing parts of this. It's not as shiny as the google one, but those could serve as a starting point:

https://github.com/pscholl/glass_snippets/blob/master/lib/src/main/java/de/tud/ess/HeadListView.java https://github.com/pscholl/glass_snippets/blob/master/lib/src/main/java/de/tud/ess/HeadScrollView.java

like image 169
pscholl Avatar answered Sep 22 '22 18:09

pscholl