Search code examples
androidlistviewgoogle-glassgoogle-gdkcardscrollview

Google Glass listing Items


Lately there have been lots of changes to Google Glass GDK and I'm getting a little confused. I have a list of discovered Bluetooth devices and I want to list them with Name, address and if possible more info (as paired, last connection, etc.)

Which method would be the best to do this? ListView? Or is it true that it is no loger supported in GGlass? CardScroll? But then I have to do a bunch of Cards? Is there any other?

Thanks!


Solution

  • ListViews do not conform to best Glass UX practices and you should avoid them; they're difficult to use since Glass's touch-interaction model is based on horizontal motion.

    It sounds like your use case is perfect for a CardScrollView, similar to the Settings bundle. Use one card per device and the user can scroll through them, and you'll have plenty of room to put some of the device's details, like address and pairing status, on each card as well.