How to create layouts properly (Android) -


I am quite new to Android development and it was not really easy for me to prepare different layouts for each resolution

Therefore, I was able to optimize my app for most devices (in the eclipse), but there are still some problems happening here and there:

  1. I really want different devices for each device-resolution in the related folder Make a copy of the same images with the proposals? I am currently using HDPI, large-HDMI, MDPI and XDPI folders ...

  2. Is it possible to use a drauble folder and it is possible to scale images is?

  3. Is there an additional drawer folder for those 5.1in (WVGA) /5.4in (FWVGA) devices? They are labeled with MDPI in eclipse, but these devices are using large HDPI folders and those images are very big, but that's right for Nexus 7.

  4. i''m is also using 4 different layout-folders (layout-SW360dp, sw480dp, sw600dp and sw720dp). Is each device group a proper way to create a layout?

    Hope someone can help me with this. thank you in advanced!

    1) Yes, you have to copy images with different resolutions for each device resolution related folder Because if you do not do this, you will have unexpected results in the size of the different screens, i.e. the wrong control and the layout will not be appropriate.

    2) If you scale the pictures, they will be spread or squeezed and you will not get the proper results on the screen.

    3) Sometimes folders behave differently on different devices. Sometimes they do not use folders that they use.

    4) Yes! As a recommendation in the document, it is a good practice to use different folders because you can not be sure of the screen sizes in Android.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -