让HTC Desire上的app显示正常,
但在三星Galaxy pad上,它并没有填满屏幕空间。
如何让我的Android HTC Desire应用程序填满三星Galaxy pad的屏幕?
详细说明:
开始活动的布局文件:
<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">
资源文件夹
填充相同大小的PNG文件(未按比例缩小):
RES /抽拉-HDPI
RES /抽拉-MDPI
RES /抽拉-LDPI
RES /可绘
的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 APIs:8
答案 0 :(得分:0)
解决了这个问题:
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="true" />