search

Home  >  Q&A  >  body text

android - 通过values-hdpi,-xhdpi,-sw1080dp来做适配

别笑我,我通过这种方式来实现屏幕的大体适配,设计师给图的时候就按照mdpi来做(默认的480*800)就是1px=1dp。
但是现在问题来了,对于nexus5x 或者6p这样的屏幕(420dpi-560dpi)应该设置怎么样的values文件夹来做对应呢?因为目前感觉看上去有点偏小。
目前文件夹

PHP中文网PHP中文网2899 days ago673

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:11:35

    Convert to the corresponding upper and lower case in the corresponding value file, use dimens

    reply
    0
  • Cancelreply