デバイス: Samsung Galaxy Tab
私はこのガイドに従いました: http://developer.android.com/resources/articles/window-bg-speed.html
パフォーマンスを向上させるために背景画像をテーマに入れましたが、縦向きでうまく機能します。
テーマ:
<resources>
<style name="Theme.xxxx" parent="android:Theme">
<item name="android:windowBackground">@drawable/background_xxxx</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>
マニフェスト ファイルのテーマをアクティビティに添付します。
<activity android:name=".main"
android:label="@string/app_name"
android:theme="@style/Theme.xxxx">
drawable ディレクトリに background_xxxx.xml ファイルを作成します。
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/background_image"
android:tileMode="disabled" />
drawable-hdpi ディレクトリに、background_image.png という 600x1024 ピクセルの画像を配置しました
drawable-large-land ディレクトリに、横向きの background_image.png という名前の 1024x600 ピクセルの画像を配置しました
アプリを縦向きで起動すると、背景画像が高解像度で表示されますが、回転すると、drawable-large-land ディレクトリに配置された画像が低解像度で表示されます。
高解像度で表示するには、横長の画像をどこに配置する必要がありますか?
ありがとう。