1

私は Android 開発を開始しており、developer.android.com の最初のトレーニング ガイドに従っています。

次のようなアプリを作成しました。

android create project --target <target-id> --name MyFirstApp \
--path <path-to-workspace>/MyFirstApp --activity MainActivity \
--package com.example.myfirstapp

nexus 7にインストールすると、すべてズームインされてぼやけます。これを修正するにはどうすればよいですか?

4

2 に答える 2

1

アプリは元々携帯電話サイズのデバイス用に作成されていたためぼやけており、タブレットで実行すると、アプリは7インチの画面に合わせて拡大されます。

于 2012-12-29T20:47:20.140 に答える
1

supports-screensセットアップが必要であることがわかりましたAndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.gpsinsight.gpsandroid"                                                             
      android:versionCode="1"
      android:versionName="1.0">
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"        android:largeScreens="true"
        android:xlargeScreens="true" />
    <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
        <activity android:name="MainActivity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>
于 2012-12-29T22:53:27.087 に答える