I am writing a mobile designer for manually creating view layouts. Imagine a mobile version of Designer if you will.
At the moment I plan to save the views layout positions in percentages. The problem is, depending on the display size certain views will either appear as squashed, correct, or stretched.
For example, here is how Seekbars and spinners turn out when using 8%y for the height in different display sizes:
Does anyone know what the correct height values should be for such views, so that they are guaranteed to display correctly?
Should I use dip instead of percentages?
The big advantage of percentages is that I do not need to worry too much about display sizes, since in theory, everything should scale accordingly
At the moment I plan to save the views layout positions in percentages. The problem is, depending on the display size certain views will either appear as squashed, correct, or stretched.
For example, here is how Seekbars and spinners turn out when using 8%y for the height in different display sizes:
Does anyone know what the correct height values should be for such views, so that they are guaranteed to display correctly?
Should I use dip instead of percentages?
The big advantage of percentages is that I do not need to worry too much about display sizes, since in theory, everything should scale accordingly
Last edited: