Reputation: 93
I tried to test Android-programming on my phone and not the emulator. There the apps only use some little space in center of the screen. In the emulator everything works fine. So I also tried the 'Hello world'-app. But there is the same problem. The phone is an HTD HD2 with HyperDroid. So it has changed density to 167. When using width and height from onSizeChanged it says 320x430 or 480x270.
Is there a way to use the whole screen?
EDIT 1:
It also uses less screen on emulator with changed density. This also means that the titlebar doesn't use the whole width. Here is a screenshot of the emulator: klick
Upvotes: 3
Views: 2822
Reputation: 249
Make sure you have put the
<uses-sdk android:minSdkVersion="xx" android:targetSdkVersion="xx"/>
tag in your manifest file. This solved this issue for me.
Upvotes: 1
Reputation: 2662
if you want to apply this for full application then
Add this line to Application tab
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
otherwise if you want for individual activities then
Add this line to "Activity tab properties"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Upvotes: 1