Вопрос об адаптивном дизайне приложений для Android ⇐ Android
Вопрос об адаптивном дизайне приложений для Android
Let's say I'm working with four different folders for different screen sizes. These folders are layout-sw320dp, layout-sw480dp, layout-sw600dp, layout-720dp.
What I am not clear about is, do I have to make modifications to the layout code for each of the previous directories, or would it simply be to copy and paste the same code in each of those directories?
My main question would be above all how to manage the height and width of the different views of each layout... I would have to give it a specific width and height for each of the sw directories or limit myself to assigning "wrap_content" to the height and width of the views in the different sw directories regardless of the minimum screen size?
Here is an example of the doubt I have between two options:
OPTION 1:
layout-sw480dp
layout-sw600dp
layout-sw720dp:
OPTION 2:
layout-sw480dp:
layout-sw600dp:
layout-720dp:
My question is, which of the 2 options would be correct when applying a responsive design?
I wanna solve a doubt about responsive design for Android apps.
Источник: https://stackoverflow.com/questions/780 ... droid-apps
Let's say I'm working with four different folders for different screen sizes. These folders are layout-sw320dp, layout-sw480dp, layout-sw600dp, layout-720dp.
What I am not clear about is, do I have to make modifications to the layout code for each of the previous directories, or would it simply be to copy and paste the same code in each of those directories?
My main question would be above all how to manage the height and width of the different views of each layout... I would have to give it a specific width and height for each of the sw directories or limit myself to assigning "wrap_content" to the height and width of the views in the different sw directories regardless of the minimum screen size?
Here is an example of the doubt I have between two options:
OPTION 1:
layout-sw480dp
layout-sw600dp
layout-sw720dp:
OPTION 2:
layout-sw480dp:
layout-sw600dp:
layout-720dp:
My question is, which of the 2 options would be correct when applying a responsive design?
I wanna solve a doubt about responsive design for Android apps.
Источник: https://stackoverflow.com/questions/780 ... droid-apps
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение