Google Glass listing Items

醉酒当歌 提交于 2019-12-11 09:06:54

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/25141590/google-glass-listing-items

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!