Hi there,
I am building a wall tablet (Lenovo M10 plus) whic has if My data is correct a width of 1900 x 1200 pixels.
I am configuring my Dashboard with layout-card and mentions there is a total width of 1920 pixels, but then all cards are not filling in the width but I need to scroll left and right ?!?
Instead, when I set my width around 1200 pixels, then all seems to fit.
When resolution says 1900 x 1200 pixels, 1900 is well the width being in landscape right ??
Does this tablet have sort of ‘retina’ display? Then physical resolution is double of the logical one. If larger than that it could scale down. Can you try to size your dashboard for resolution below 960x600 and see what portion of screen is taken?
Avoid using pixels to define distances or sizes. Defining dimensions with pixels is a problem because different screens have different pixel densities, so the same number of pixels corresponds to different physical sizes on different devices.
To preserve the visible size of your UI on screens with different densities, design your UI using density-independent pixels (dp) as your unit of measurement. One dp is a virtual pixel unit that’s roughly equal to one pixel on a medium-density screen (160 dpi, or the “baseline” density). Android translates this value to the appropriate number of real pixels for each other density.
So it seems that your tablet is using 1/1.5 scaling (physical pixel to density independent pixel), which explains difference in physical specification (2000x1200) and what tester shows (1334x800).
So if you wan to scale your cards to not take full screen real estate, you should use, as guidance available resolution of 1334x800 pixels.