-
Notifications
You must be signed in to change notification settings - Fork 17
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
Gridrecyclerview with height 0.5 of the screen height - alignment problem (last row cut off) #203
Comments
Hi @fankloano . Thank you for the detailed bug report, this will help me a lot to investigate. |
Fix here: #204 Will be available in |
@fankloano |
@rubensousa |
@fankloano yes, please open a new issue and attach a sample project that reproduces it if possible. I won't be able to fix that one so soon since I will be away for vacation |
Hi there, I hope you are doing well I'm facing an issue that when I use setSpanSizeLookup, the last row of items won't get focused. Is it related to this issue or do I need to open another one? |
Hi there @tyrel-carlson . No, this issue should be solved. Please create a new one, ideally with reproduction steps and a video recording |
Sorry for late answer, I'm using the dpad recycler with a span count of 4 integrated with a spanSizeLookup to decide if the span size should be 1 or 4 depending on the item type (header or cell) in a sectioned grid view. the problem is that the last row of items (including a date header) is not getting focused unless I do a fast scrolling but not from direct upper items, so for your information I'm not allowed to publish any screen recording of the production app, so I provide some code here and let me know if I'm missing something, if not I'll open an issue:
|
I'm still stuck on this, can you please help me with that? @rubensousa |
Please open a new issue with a video recording and attach this code snippet above. @tyrel-carlson |
@tyrel-carlson did you solve this problem? |
Yeah, I managed to solve this using my own focusSearch. Here is my solution, so feel free to use it to improve the repo.
|
Can you please raise a new issue with the original problem so I can have a look for the next release? Meanwhile |
Sure, I will open a new issue. FYI, I've tested |
Hello,
hopefully you can help me to solve my issue. I wanted to implement a grid-recyclerview, that fills only 0.5 percentage of the height of the screen. I am using following code in the xml layout:
<com.rubensousa.dpadrecyclerview.DpadRecyclerView android:id="@+id/rv_layout_Movies" android:layout_width="0dp" android:layout_height="0dp" android:orientation="vertical" app:spanCount="8" app:layout_constraintStart_toEndOf="@id/linLayout_movieAccounts_categories" app:layout_constraintHeight_percent="0.5" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintWidth_percent="1.0" android:nextFocusRight="@id/tv_showFullEpg" tools:listitem="@layout/rv_item_movies"/>
What I want to achieve is, that the grid-list fills the half height of the screen and the user can navigate throw this list (right/left + up/down). Everything works as aspected, except that the last row of items is cut off. Like in the following picture (green are the cards, red the background)
And how it should be (sorry I used Paint to "design" this :-) ):
I tried to change the edge alignments and modified the constraints and similar but I couldn't get it to work correctly . (using match_parent, so that the whole screen height is filled, would work). Is there some work-around or did I miss something?
ps: When I navigate to the last item of the last row (so the item on the far right) the last row suddenly is aligned correctly (as in the second picture).
thanks in advance
The text was updated successfully, but these errors were encountered: