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 .
|
1 answer
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
|
values-largefolder and so on. - pavel