79627088

Date: 2025-05-18 01:23:19
Score: 1
Natty:
Report link

What you can do is to use the values you got from your figma as Dp in your Android XML or compose.
Still if you are experiencing those issues that is why the Figma design is based on a specific screen density and your test device is it using a different screen density.
That's all about it screen density. You can't do much about it since if you manage to have a bigger design for your specific device and settings then it will look too big for other user settings.

Also, consider to test your UI in a "standard" setting scenario even if you like your text size and display sise so little or so bigger.

If you can post a specific sample I can help you more, but there is no right answer here.

If you need to have a consistend spacing and element disposition in the screen space you should use a container which let you have proportion and constraint like a contraintLayout. (or use weight, but I do not reccoment doing that)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What you can
  • Low reputation (0.5):
Posted by: alex_au