In fact, I created an application for all screen resolution. Therefore, for this, according to the documentation, I created a list of resource directories in the application, which provides various layout schemes for different screen sizes and different bitmap images for medium, high and high density screens.
For instance:
res/layout-normal/my_layout.xml // layout for the normal screen size ("default")
res/layout-small/my_layout.xml // layout for a small screen size
res/layout-large/my_layout.xml // layout for a large screen size
res/layout-xlarge/my_layout.xml // layout for an especially large screen
Now, when I run my application on another device, I noticed that some devices with different screen resolutions accept the layout from the same resource directories as the normal layout, and an example of such devices:
HVGA (320 x 480)
WQVGA 400 (240 x 400)
WVGA (480 x 800)
WXGA (720 x 1280)
Due to the use of the layout from the same resource directories, that is, it is very difficult for me to manage the space between the user interface for all devices, since they accept the same layout. Because if I control the layout for the HVGA, then it will not look good in another, because it is a resolution.
So, is there any way to solve this problem. Please help me solve this problem.
source share