0

適切なサイズの画像リソースがいくつかあり、drawable-land-ldpi と drawable-port-ldpi に配置されています。アプリがどのように見えるかを見ると、画像は横向きでは横に引き伸ばされ、縦向きでは縦に引き伸ばされて表示されます。

しかし、DDMS でスクリーンショットを撮ると、歪みがまったくなく、完璧なサイズで表示されます。何が起こっていますか?

実際のデバイスであるAndroid 4.0.3にあります。最小限のシンプルな画像レイアウトで。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
tools:context=".MainActivity" >
     <ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/imageb" />
</RelativeLayout>
4

0 に答える 0