Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是好奇看看这里
Galaxy Note 低于正常尺寸和 XHDPI 索尼 Xperia S 低于正常尺寸和 XHDPI
但是,在真实设备中,每个设备上的布局如何看起来不同呢?我如何为每个 Android 设备提供布局?
我认为您永远无法制作适合所有 Android 设备的布局。我发现最好的结果是: (1) 使用RelativeLayouts (2) 避免使用任何硬编码的尺寸,而是尽可能使用wrap_contentandfill_parent
RelativeLayout
wrap_content
fill_parent
我构建了三种主要布局:normal、small和large,并且针对不同的屏幕密度和尺寸使用了多达五组图形。
normal
small
large
这是一个挑战!