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/UI poster wall issues in 4k, lots of wasted space? #1774
Comments
Oh wow. Yeah. I tested on a Chromecast with Google TV last night, and all the poster sizes definitely did not get that small, running at 4K native resolution. They also didn't have that weird spacing |
I think you can get the same bug on ShieldTV if you enable developer options and than enable the "Show/Allow all resolutions" option. Than the device will run a "different" 4k UI resolution/layout and you get the same spacing, while the native OS settings panels are also much smaller. I think some extra ui element/text zooming/sizing is going on by default on AndroidTV in 4k. |
Also not sure if related but i see a lot of those errors in the log: and
|
Those warnings can be safely ignored. The grid shouldn't look like this though. I have some ideas what could cause it so I'll look into it when I have some time. |
I've looked into this but from my testing the posters correctly use display pixels and scale with the pixel density as expected. So I don't see any issues with it. |
I mean something must be wrong/off, the evidence is in the pictures. Is there any debug output i can give you, so you can figure out whats going wrong? Also can you point me to the code that manages the layout/sizing of those elements? PS: Do you have a ShieldTV at hand? As noted there you could try the settings i posted. |
Yes I did test on both the emulator (using adb to change window manager settings) and nvidia shield (the mentioned option). On the shield it just changes the UI rendering from 1080p to 4k, which worked fine.
Start at StdGridFragment.java |
mhh any Android 9 based hardware to test on? PS: Finally manage to get debugging working on the zidoo, so i can directly look into the values. Can you give me the expected values i should look at from your 4k testcases? |
Nope, no other hardware to test on. The default screen density is 320 with a resolution of 1920x1080 in the emulator. |
Ok in the Android 9 system settings is a option Whats odd is that all JellyfinTV Ui elements scale with this setting correctly, except the poster views? Yet for the poster views i only get somewhat reasonable results with [larger, largest] settings, which makes the remaining Ui unusable. Can i get some more reference data for default values on a 4k TV? Here are what i get with different |
@nielsvanvelzen ok i see whats going on, all of the grid values are hardcoded inside I can adapt those, but i cant get rid of the bottom padding/space? I tried this |
ok found it, its the It seems |
The vertical grid view is marked as experimental because it really is a hack. |
After adapting a 585dp size for Is there a reason that even in the "none experimental" view the size is limited? How many rows you get for a default setup in 4k and do you have this marked empty area also by default? I think the VerticalGridView should be the default, since that's how the browser app works. Most other media-centers (Kodi/Plex), tools that have poster views also have top->bottom as default view direction. |
The experimental one was added by us and marked experimental because it only works properly 60% of the time. The other one is originally from mediabrowser/emby and works 80% of the time. I'd say both implementations should be rewritten at some point but I haven't had the time to work on that. |
What does this mean? What happens in those 40% and what are the 40% even? From my point of view both work 100%, i get no crashes and can select/play each highlight element just fine. |
Great to see the discussion after my original feedback on the Reddit channel! I agree with Andy2244 that ideally the vertical layout should be the default - not only to keep a consistent look with the Web experience but I also feel it's more natural as well. However, if fix the horizontal layout is an easier/safer approach then I have no problems using it! The most important step is to address the layout issue (empty space at the bottom 50% of the screen) on devices using Android 9. Andy - do you have a private build with your fix? I can help by validating if it fixed the issue on my Zidoo while not damaging anything on Chromecast with Google TV. |
Still working on rewriting the hardcoded layout setup, which makes no sense given that I think i have some easy fixes, but need to validate them. I will also try to add a user setting "ui scale" where you can override the system density value.
I'm actually working on a full "Zidoo Edition" fork, that also fully supports the internal VS10 player. I will post the beta1 in the Zidoo Forum/Development and also setup a proper github page if i'm ready. Here are some preview's of the fixed layouts, still working on the item spacing, view padding and left/right border space. @danbezerra can you also provide me photos of the homescreen, details-view and poster-views horizontal/vertical (small/default) from your Chromecast , so i can better compare vs Android 9/Zidoo. I cant remember if the default HorizontalView was able to display 3 rows with the default setting, since it seems the empty bottom space was always there? |
@Andy2244, see attached the zip file with the images. Horizontal Medium uses 3 rows with all default settings. |
ok thanks, will try to get to something similar. |
@nielsvanvelzen ok i see why the vertical grid is called "Experimental", there is not even a proper view definition for it. So it uses some large default padding and inconsistent spacing's. I see what the fundamental issue is with the grids, that until the fragment is actually rendered we cant get the actual height/width and all this guesswork in I have found a way to get the actual fragment values, so we can always calculate the exact fitting row/columns for the presenter's, but need to-do more tests before i can setup a PR. PS: There is also a bug around the delayed |
If you're able to calculate the amount of rows/columns for the different sizes/image types that would be awesome. I'm a bit busy for the next few weeks so it might take bit until I'm able to review it, so take your time 😉 |
@danbezerra just released my beta1 which include the layout fixes here: https://github.com/Andy2244/jellyfin-androidtv-zidoo |
Describe the bug
On my Hisense 4k TV the UI layout while in a 4k resolution looks off and has lots of wasted space?
Thats from a Zidoo Z9X box running Android 9, not AndroidTV.
Would like to see a layout option that mimics something most Kodi skins do by default and use all available screen-space for poster rows/columns display.
Layouts are "small" and "default" and horizontal/vertical, Images are blurred for privacy reasons
Logs
No response
Application version
0.13.6, master
Where did you install the app from?
Sideload
Device information
Zidoo Z9X
Android version
Android 9
Jellyfin server version
10.8
The text was updated successfully, but these errors were encountered: