[android-developers] Re: Moving a graphic on different screen sizes with the right ratio?

2010-04-05 Thread Bevor
Hello, thanks for your answer. Using heightPixels is a good idea. With it I could achieve my intent. I wonder if game developers would do that in the same manner because on the bottom of the screen I have buttons. These buttons have different heights on the different screen sizes (small, normal,

[android-developers] Re: Moving a graphic on different screen sizes with the right ratio?

2010-04-05 Thread Yahel
Hi Bevor, Have you read about independent pixels (dip) in Android. Take a look at, if you have not already done so at : http://developer.android.com/intl/fr/guide/practices/screens_support.html Basically, the device can lie to your app whenever you set pixels on a device, to make your app look

[android-developers] Re: Moving a graphic on different screen sizes with the right ratio?

2010-04-05 Thread Bevor
Hello, thanks for your answer. Meanwhile I found a very satisfying solution. In my layout xml I used scaled-independend pixels: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical

[android-developers] Re: Moving a graphic on different screen sizes with the right ratio?

2010-04-04 Thread Lance Nanek
That field is documented as being a bit mask: http://developer.android.com/intl/fr/reference/android/content/res/Configuration.html#screenLayout That means that it is one number, but different bits within the number are being used to indicate different things. To check any particular thing about