私のmain.xmlには画像マーカーがデバイスの幅を埋めるものはありませんか?なぜ画像が幅を埋めていないのですか
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:screenOrientation="portrait">
<ImageView
android:id="@+id/ImageView01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:src="@drawable/marker">
</ImageView>
</LinearLayout>
上記のfill_parentに幅を設定しましたか?scaleTypeをチェックします。ちょうど今それは働いた。このエミュレータは地獄のようにバギーで、半分の時間は半分の時間で動作しない。 –
ああ、私は高さを意味した、すみません。私はそれを編集しますImageViewの高さを変更します。 – kcoppock