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

VerticalGridSupportFragment with ImageCardView info only show when selected issue #15

Closed
jrocharodrigues opened this issue Dec 17, 2019 · 1 comment

Comments

@jrocharodrigues
Copy link

Hi,
I'm trying to use a VerticalGridSupportFragment to display cards that only show the info when selected.

I loaded the LeanbackShowCase, and added the <item name="infoVisibility">selected</item> to the GridCardStyle.
When running the app the grid shows an weird behaviour when selecting a card, the rows below moves down, and sometimes the cards change order.

image

image

Is there an way to prevent the rows below from moving down and keep the items in the same position?

Thanks in advance

@IanGClifton
Copy link
Contributor

Unfortunately, I don't know of an easy way to accomplish that. Under the hood, it's using a GridLayoutManager, so you could subclass that to do what you want, but it's not a small amount of code. You might also try posting on http://stackoverflow.com/questions/tagged/android-tv to see if anyone else has done something similar.

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

2 participants