Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glass - ListActivity no longer scrolls up/down with left/right swipes #1

Closed
barbeau opened this issue Apr 20, 2014 · 5 comments
Closed
Labels

Comments

@barbeau
Copy link
Member

barbeau commented Apr 20, 2014

Reported by @paulpv in OneBusAway#116 (comment):

ListActivity no longer scrolls up/down with left/right swipes. Here are some SO links that may help to solve the problem:
http://stackoverflow.com/questions/23097555/how-to-enable-scrolling-on-a-simpleadapter-on-google-glasss-firmware-x16/23146305#23146305

Here is my app's issue, specifically related to PreferenceFragment: http://stackoverflow.com/questions/23160084/preferencefragment-cannot-scroll-up-down-on-xe16-worked-fine-on-xe12

This likely started occurring due to the XE16 update, since few things have changed since the XE12 version, and scrolling worked on XE12.

@barbeau barbeau added the bug label Apr 20, 2014
@barbeau
Copy link
Member Author

barbeau commented Apr 22, 2014

Same issue still occurs on XE16.1 that is rolling out now.

@barbeau
Copy link
Member Author

barbeau commented Apr 22, 2014

I filed an issue for broken ListView scrolling on Google GDK issue tracker:
https://code.google.com/p/google-glass-api/issues/detail?id=484

@barbeau
Copy link
Member Author

barbeau commented Apr 24, 2014

In above issue, Google is saying they won't fix, and we should look at CardScrollView instead (I assume this means cascading items that don't fit on the screen to new Cards in the CardScrollView - I've asked for clarification here).

In the mean time, as quick fixes to the current version, I have two implementations in two different branches:

  1. Gesture-based fix - https://github.com/CUTR-at-USF/onebusaway-android/tree/glassFixListScrollGesture - swipe forward/backwards as before (but selected element always stays at top now)
  2. Sensor-based fix - https://github.com/CUTR-at-USF/onebusaway-android/tree/glassFixListScrollAccelerometer - tilt your head up/down to scroll. Tap to pause/resume scrolling.

@paulpv opinions? The accelerometer-based option is dangerously close to being usable, IMO :).

@barbeau
Copy link
Member Author

barbeau commented Apr 25, 2014

Just tweaked the sensor-based implementation - Also, two finger hold is now used to pause/resume scrolling, and two finger tap is used to scroll to top of the list. This reserves one finger tap for menu access (to come).

barbeau added a commit that referenced this issue Apr 25, 2014
…round to broken swipe-based scrolling in XE16.X.
@barbeau
Copy link
Member Author

barbeau commented Apr 25, 2014

I'm running with the sensor-based implementation for now, as it seems like the most reasonable solution (especially as a temporary quick-fix, until I try something with CardScrollView). If its problematic for some users, we can revisit it.

@barbeau barbeau closed this as completed Apr 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant