gpt4 book ai didi

android - 如何设计在纵向和横向方向上看起来都不错的布局?

转载 作者:行者123 更新时间:2023-11-29 22:32:15 26 4
gpt4 key购买 nike

我发现我的布局在一个方向上看起来很不错,但如果我改变手机的方向,事情就会变得一团糟。例如,在一个屏幕上,我有 6 个大按钮,在纵向方向上看起来很棒,但如果用户改变手机方向,这些按钮在纵向方向上会被切断。

我是否需要为每个屏幕编写两种布局 - 一种用于纵向,一种用于横向?那太浪费时间了。

最佳答案


根据 Hello, Android by Ed Burnette <强>。 . .

You could try to adjust the layout so that it works with all orientations. Unfortunately, that's often not possible or leads to odd-looking screens. When that happens, you'll need to create a different layout for landscape mode.

关于android - 如何设计在纵向和横向方向上看起来都不错的布局?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3596546/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com