views:

134

answers:

3

Hi, I have 9 (vertical) radio buttons and they are all showing in default resolution (320x480) without problems . But when I'm trying in resolution for Htc Tattoo (240x320) the last radio button is hidden - there isn't space to be shown. How to make uniformly size ?

A: 

Let Android help you:

Here's the guide to best practices on the Android site

bbudge
if you have read the guide you are linking you will see that computing a scale factor is nearly never necessary on android there are much better mechanisms to handle that.
Janusz
Agreed, thought poster might want a quick fix, but edited my answer to just link to SDK guide.
bbudge
+1  A: 

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.

Try to not use an absolute layout and absolute px values. 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.

Janusz
A: 

In AVD Manager when I'm setting different resolutions the app works ok for all resolutions. But, in AndroidManifest if I insert <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true" /> many components are dislocated. Why?