Android Layouts for Multiple Screen Sizes

前端 未结 3 1385
温柔的废话
温柔的废话 2020-12-10 20:06

I\'m working on an android app that we\'re targeting for all screen sizes? How do i go about making my layouts? Shall i make a different layout.xml for each type of screen o

3条回答
  •  忘掉有多难
    2020-12-10 20:36

    For landscape and portrait mode, you can use different xmls, incase u need to display your screen according to the orientations. I have been using this method for my apps. As for support of multiple screen, you can go with relative layout as parent node. Dont go with absolute layout.

提交回复
热议问题