After updating my Google Glass up to XE16 my listview, which I have built by using a simpleadapter, is not able to scroll anymore. Is there a way to manually enable scrolling nonetheless with the GDK or fix this issue?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
My listview stopped scrolling as well with the X16 update. You can build scrolling back in by doing the following:
In your activity's
onCreate
method, be sure to:onItemClick
listenerFor example:
Now, we need to write a new method for the
createGestureDetector()
call above (last line). Basically, you can modify the code given in the GDK docs to scroll up and down based onSWIPE_LEFT
andSWIPE_RIGHT
gestures. Note that in the above code, I assigned my listView to a variable calledmyListView
. Here's a sample method for the gesture detector that will scroll based on the swipe gestures:Hope this helps!