T
T
trydev2019-01-24 10:54:51
Android
trydev, 2019-01-24 10:54:51

How to adapt an application for tvdpi if it is made for mdpi?

Hello. The problem is the following.
I am writing an application for Android.
The designer draws layouts under mdpi (1x) and I made them up one to one in size.
But the customer has changed the target device, now the density is tvdpi (1.3x) (Galaxy Tab A).
What methods can be used to adapt the layout to a different screen density?
In parallel, the question is - do all designers draw layouts for screens only under mdpi? Or do normal designers draw for other densities too?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Varakosov, 2019-01-24
@trydev

When you use dpi-dependent values ​​(dp and sp), you already account for these factors.
Most likely, the markup file for mdpi or another density is picked up, this is a fairly common problem with tvdpi. Specify explicitly from which screen size the layout should be used by placing it in the appropriate folder, something like layout-sw800dp-tvdpi.
However, first, find out if the user has twisted the interface scale in the device settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question