Android Layout支持所有设备

问题描述 投票:0回答:1

如何使用单个布局文件修复所有设备的布局?这个问题已被多次回答,但这些答案并没有帮助我。我的应用程序在5英寸屏幕上看起来很完美,但在其他屏幕上,对齐方式不同。

android android-layout
1个回答
0
投票

使应用程序适合所有类型设备的最佳方法是在设计应用程序布局时使用WeightSum,

http://www.northborder-software.com/getting_started_part16.html

What is android:weightSum in android, and how does it work?

© www.soinside.com 2019 - 2024. All rights reserved.