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

Layout issues and not scrollable #4

Open
fruel opened this issue Sep 20, 2014 · 2 comments
Open

Layout issues and not scrollable #4

fruel opened this issue Sep 20, 2014 · 2 comments

Comments

@fruel
Copy link

fruel commented Sep 20, 2014

While trying to implement the FeatureCoverFlow I discovered that the covers are not laid out correctly and are not scrollable when the adapter does not provide enough items.

Example 1:
14 images
Width: match_parent (=screen width)
Everything works as expected.
screenshot_2014-09-20-13-15-37

Example 2:
9 images
Width: 200dp
Everything works as expected.
screenshot_2014-09-20-13-27-32

Example 3:
9 images
Width: match_parent (=screen width)
Everything works as expected on smaller screens (Samsung Galaxy S2, Samsung Galaxy Mini) but on a big screen (Nexus 5) the layout is not centered and the cover flow is not scrollable. (but OnClick events on the images work)
screenshot_2014-09-20-13-16-11

@applm
Copy link
Owner

applm commented Sep 22, 2014

If you don't have enough items you must set shouldRepeat true. This coverFlow implementation can not work without items filling space from edge to edge. It is because I used EndlessLoopAdapterContainer as a base class.

@vinaywadhwa
Copy link

any advice on how to make it work with items NOT covering the whole space? One idea is to insert dummy invisible elements and disallowing scrolling to them (by scrolling back to the last real item on a onScrollToPosition event). What else?

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

3 participants