Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top