大屏幕使用入门
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
平板电脑、可折叠设备和 Chrome 操作系统设备配备的大屏幕让您有机会展示详细内容、启用多任务处理功能,或打造在小屏设备上无法实现的独特体验。
由于 Android 设备形状各异且尺寸不一,因此您在设计应用时需要采用自适应布局,以便适应您的应用可能遇到的任何设备。不要为布局定义固定尺寸(也就是假定采用特定的屏幕尺寸、宽高比或屏幕方向)。
首先熟悉以下准则:
状态转换
在应用使用期间,应用窗口的尺寸可能会发生变化。例如,应用可能会在 Chrome 操作系统设备(允许多个应用同时在尺寸可动态变化的窗口中运行)上运行,也可能会在支持不同折叠状态的可折叠设备上运行。
某些用户操作(如窗口大小调整和鼠标跟踪)需要您的应用响应动态变化的状态。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-11-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]