Reputation: 1070
I have a layout that is displayed in an activity. When i run it on the clique it takes up the whole screen but when i run it on the droid 3 there is a black bar at the bottom and sides. How do i make it so it takes up the whole screen? I thought android was suppose to do that for you?
update:
I am just setting the contentView of the Activity like this:
activity.setContentView(R.layout.home);
Heres the XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/home_screen_lay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/home_screen">
</RelativeLayout>
Heres my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Viewer"
android:label="@string/app_name"
android:configChanges="orientation|keyboard|keyboardHidden"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Heres a picture:
you can see where it won't resize.
if anyone needs anymore info i can update again.
Upvotes: 0
Views: 141
Reputation: 713
I had a problem like this once. It was because the min or target sdk wasn't set to at least level 3 in the AndroidManifest.
Something like this: <uses-sdk android:targetSdkVersion="7" />
I'm guessing level 1 doesn't handle higher pixel screens.
Upvotes: 1