carefacerz
carefacerz

Reputation: 1297

Android Development: Screen fit in different devices

I got a HTC Desire and a HTC Sensation. My applications do fit perfect for the Desire but when i run them with my qHD Sensation the application gets really small on the device. And the rest is just blank(black color)

How do i fix this?

//Simon

Upvotes: 1

Views: 1991

Answers (2)

ZiGi
ZiGi

Reputation: 752

change the <uses-sdk.../> in your AndroidManifest.xml to the following:

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8" />

worked for me :)

Upvotes: 0

Justin ᚅᚔᚈᚄᚒᚔ
Justin ᚅᚔᚈᚄᚒᚔ

Reputation: 15359

You need to be using device-independent pixels in your layout (use the unit "dp" instead of "px" in your XML and code).

http://developer.android.com/guide/practices/screens_support.html

Edit:

Marakana has a pretty good video tutorial series that covers device-independent pixels and "proper" Android UI design: http://www.youtube.com/watch?v=lESZqCflB0o

Upvotes: 1

Related Questions