Android HTC Sensation QHD screen resolution truncated

It drives me crazy!

Using Eclipse to create an application for my HTC Sensation. On the Main.xml tab in the graphic layout, I created a QHD device configuration with the Portrait and Landscape attributes, and the screen resolution is 960x540. Everything looks great in the graphic layout, but when I launch my phone, the screen is ALWAYS about 1/4 of the screen too short!

It seems to me that the device configuration in eclipse on the graphic layout is only for eclipse, but does nothing on the phone. If so? Where I set the total space that I want my application to go on screen.

My project is just a simple linearlayout with the width and height set to "Match Parent"

hope you can help. Thanks in advance.

+3
source share
2 answers

I like your comment; it worked for me. since you cannot answer your question, I will send it to you:

change <uses-sdk.../>to AndroidManifest.xmlthe following:

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

This solution is for me, but I had to implement it a little differently ...

Using Eclipse, I had to set the target SDK in the project properties, and the size was correct only when using the SDK version with a minimum version of 4 or higher.

+1
source

All Articles