开发者

How to make Android HTC Desire app fit screen of Samsung Galaxy pad?

Have app displaying fine on HTC Desire,

but on Samsung Galaxy pad it does not fill the screen space.

How do I make my Android HTC Desire app fill the screen of Samsung Galaxy pad ?

Details:

Layoutfile for start activity:

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

Resource folders

are filled with same size PNG files (not scaled down):

res/drawable-hdpi

res/drawable-mdpi

res/drawable-ldpi

res/drawable

Androidmanifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="my.package" android:versionCode="1" android:versionName="1.0">
        <uses-permission android:name="android.permission.INTERNET" />
        <application android:name="my.package.AppContext" android:theme="@android:style/Theme.Light" android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">

default.properties

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=Google Inc.:Google AP开发者_JS百科Is:8


THIS SOLVED IT:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜