简体   繁体   English

Android不同分辨率的问题

[英]Android different resolutions problem

I have 9 (vertical) radio buttons and they are all showing in default resolution (320x480) without problems . 我有9个(垂直)单选按钮,它们均以默认分辨率(320x480)正常显示。 But when I'm trying in resolution for Htc Tattoo (240x320) the last radio button is hidden - there isn't space to be shown. 但是,当我尝试使用Htc Tattoo(240x320)进行分辨率时,最后一个单选按钮被隐藏了-没有空间可以显示。 How to make uniformly size ? 如何使尺寸均匀?

If your layout is simply to big for the screen of the tatoo you could use a ScrollView to enable the user to scroll to the last button. 如果您的布局对于纹身的屏幕来说只是很大,则可以使用ScrollView来使用户滚动到最后一个按钮。

Try to not use an absolute layout and absolute px values. 尽量不要使用绝对布局和绝对px值。 If you are using values like layout_height="5px" try to change this to layout_height="5dip" as described in the supporting different screen resolutions guide this will enable the os to scale your app to different screen sizes. 如果您使用诸如layout_height="5px"类的值,请尝试将其更改为layout_height="5dip" ,如支持不同的屏幕分辨率指南中所述,这将使os将您的应用缩放到不同的屏幕尺寸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM