Giter Site home page Giter Site logo

Comments (1)

JessYanCoding avatar JessYanCoding commented on June 11, 2024 2

是的,官方文档上的屏幕适配规范,指的是希望在更大屏幕的机型上可以显示更多的 UI 元素,这样对用户来说在更大屏幕的机型上可视和可操作的内容更加丰富;而不是指在所有不同屏幕大小的机型上只是动态地百分比缩放界面。

所以,要想达到官方屏幕适配规范,给用户提供更完美的用户体验,官方是希望应用开发者提供动态的布局方案,甚至同一个页面多套布局的。

至于百分比适配只不过是民间自行实现的最具性价比的屏幕适配方案罢了,这并不符合官方的理念,所以官方更不会出工具去支持这种 "偷懒" 的适配方式(Google 曾出过百分比库,不过早已作废 Android Percent Support Repository)。

WeChate163bef5c34525caefe4a32be772e4a1

大屏设备应用质量指南
Compose 适配方案

这两个文档都介绍的是怎么构建更灵活的自适应布局,而不是百分比布局。

from androidautosize.

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.