Coder Social home page Coder Social logo

Comments (2)

a4425421 avatar a4425421 commented on May 30, 2024

mate8屏幕是1920x1080-6英寸的屏 -底部因为有个底部栏 -所以打印出来
heightPixels:1812
widthPixels:1080
density:2.5
heightDP:724.8
widthDP:432.0
按照教程他应该是在432dp,但是运行demo,他使用的还是360dp的。
如果我把432dp的dimen文件放到360dp的文件夹,mate8就可以正常显示,但是这样原本都是360dp的手机就都会适配不了。

请问这个应该如何解决,谢谢

from screenadaptation.

wildma avatar wildma commented on May 30, 2024

@a4425421 如果是竖屏适配,那么按你打印的最小宽度就是432dp,系统会自动匹配values-sw432dp,没有该文件夹才会往下匹配。像你说的使用的是360dp的情况,可能是你的项目没有values-sw432dp往下匹配了,或者你哪里弄错了,你可以运行我的demo试试。

from screenadaptation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.