How to make the application read on tablets and phones with large and small diagonal?

Closed due to the fact that the issue is too common for the participants in pavel , cheops , user207618, Denis , user194374 13 Aug '16 at 6:22 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • uh ... for example use the values-large folder and so on. - pavel
  • @pavel But aren't small, large, x-large and others obsolete? Are they used? - Silento
  • @Asgard when did they become obsolete? - Suvitruf
  • @Suvitruf Yes, I read like that they are no longer used in alternative resources. So for what purpose they are used for example, could write? - Silento

1 answer 1

Create a layout for different screen resolutions. Here is an example from developer.android :

  • res / layout / my_layout.xml
  • res / layout-large / my_layout.xml
  • res / layout-xlarge / my_layout.xml
  • res / layout-xlarge-land / my_layout.xml

For images:

  • res / drawable-mdpi / graphic.png
  • res / drawable-hdpi / graphic.png
  • res / drawable-xhdpi / graphic.png
  • res / drawable-xxhdpi / graphic.png

Look at offs for more details . site .