Trick
Trick

Reputation: 3859

App gets shrinked on Android 3.0 tablet

As seen here this picture my app gets shrinked on Samsung Galaxy Tab with Android 3.0

It is also shrinked in emulator, but at graphical layout it looks ok. main.xml:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
    >

<WebView android:id="@+id/web_engine"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
        />
</LinearLayout>

It is OK on phone screens.

Upvotes: 1

Views: 110

Answers (3)

Elemental
Elemental

Reputation: 7521

Your android XML look fine and unless you have a different layout resource for large/xlarge screens it is hard to see how this could be a problem.

Consider the possibility that the issue is not in the android XML but in the displayed HTML/CSS? That is that you are seeing a large webview on the screen with only a small display of HTML filling it.

Upvotes: 1

kaspermoerch
kaspermoerch

Reputation: 16570

It looks like your app is run in some kind of Screen Compatibility Mode. Follow the link and read up on what conditions in your AndroidManifest.xml might cause your app to enter this state.

Upvotes: 2

TryTryAgain
TryTryAgain

Reputation: 7830

Most likely not including xLargeScreens in the Manifest:

http://developer.android.com/guide/topics/manifest/supports-screens-element.html

Hope that is it/and helps.

 <supports-screens android:resizeable="true"
    android:smallScreens="true"
    android:normalScreens="true"
    android:largeScreens="true"
    android:xlargeScreens="true" 
    android:anyDensity="true"/>

Should help.

Upvotes: 1

Related Questions