【问题标题】:How to make Android HTC Desire app fit screen of Samsung Galaxy pad?如何使 Android HTC Desire 应用适合三星 Galaxy 平板的屏幕?
【发布时间】:2010-11-03 10:41:03
【问题描述】:

让应用程序在 HTC Desire 上正常显示,
但在三星 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/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 APIs:8

【问题讨论】:

标签: android


【解决方案1】:

这解决了它:

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

【讨论】:

    猜你喜欢
    • 2011-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-29
    • 2012-06-22
    • 2014-10-14
    相关资源
    最近更新 更多