My project doesnt support multiple devices screen view

后端 未结 4 1467
借酒劲吻你
借酒劲吻你 2021-01-29 02:37

I have an menuscreen XML. When I open the project wide screen Its not adapted all screen size. How can I overcome this problem.

When I want to add picture about this pro

4条回答
  •  粉色の甜心
    2021-01-29 03:21

    You can proceed as following
    
    res/layout/my_layout.xml             // layout for normal screen size ("default")
    res/layout-small/my_layout.xml       // layout for small screen size
    res/layout-large/my_layout.xml       // layout for large screen size
    res/layout-xlarge/my_layout.xml      // layout for extra large screen size
    res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation
    
    res/layout/main_activity.xml           # For handsets (smaller than 600dp available width)
    res/layout-sw600dp/main_activity.xml   # For 7” tablets (600dp wide and bigger)
    res/layout-sw720dp/main_activity.xml   # For 10” tablets (720dp wide and bigger)
    
    res/drawable-mdpi/my_icon.png        // bitmap for medium density
    res/drawable-hdpi/my_icon.png        // bitmap for high density
    res/drawable-xhdpi/my_icon.png       // bitmap for extra high density
    
    
    
    

提交回复
热议问题