0

Androidアプリケーションに画像を読み込めません。(AndroidとJavaの初心者です)..画像とテキストメッセージを表示するための非常にシンプルな起動アプリです。

アプリケーションがロードされると(エミュレーターで)、テキストmsgのみが表示され、画像は表示されません:(

手伝ってくれませんか..

これが私のlayout/activity_main.xmlです

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

<ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/logo" />

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/hello_world" />


</LinearLayout>
4

1 に答える 1

0

drawable フォルダーが res にあり、ロゴ画像ファイルがそのフォルダーにあることを確認する必要があります。この助けを願っています。

于 2012-09-20T20:04:26.920 に答える