applying resolution for different devices

后端 未结 1 824
遥遥无期
遥遥无期 2021-01-23 04:58

I have been trying to Set screen resolution for an Array of devices,I have looked all the answers up and from what I understood if I create an res/layout-normal,res/layout-larg

1条回答
  •  孤独总比滥情好
    2021-01-23 05:39

    Its just a example:

    Device resolution-

    res/values/dimens.xml(default)
    
    res/values-ldpi/dimens.xml (240*320 and nearer resolution)
    
    res/values-mdpi/dimens.xml (320*480 and nearer resolution)
    
    res/values-hdpi/dimens.xml (480*800 and nearer resolution)
    
    res/values-xhdpi/dimens.xml (720*1280 Samsung s3,Micromax HD canvas etc)
    
    res/values-xxhdpi/dimens.xml (1080*1920 samsung s4,HTC one etc)
    

    Tablet resolution-

    res/values-sw600dp/dimens.xml (600*1024)
    
    res/values-sw720dp-land/dimens.xml (800*1280)
    
    
    
    
    

    0 讨论(0)
提交回复
热议问题