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

Set correct scroller shape depending on orientation #83

Open
pgp opened this issue Sep 3, 2020 · 0 comments
Open

Set correct scroller shape depending on orientation #83

pgp opened this issue Sep 3, 2020 · 0 comments

Comments

@pgp
Copy link

pgp commented Sep 3, 2020

I am developing a simple gallery application, and I want to be able to choose between orientations (horizontal/landscape, and vertical/portrait), and to have fast scrolling on both.

After trying a few libraries, I succeeded with this one; however, I did not manage to explicitly set the shape of the fast scroll cursor, it is always horizontal, even with vertical orientation for my recyclerview.

The orientation change is performed at runtime via a button; instead, if I set orientation statically for the FastScroller view from xml file (and the GridLayoutManager orientation accordingly on app start), everything works fine, so I think this wrong behaviour is due to some additional view attribute that gets set automatically and correctly in the latter case, but not in the former. Any suggestion?

If you'd like to have look at the behaviour I'm talking about, the sample app is available here, and it reads images from DCIM/Camera (I'm testing it with 500 images)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant