Моя цель - отобразить пару кнопок, а затем изображение PNG. Проблема в том, что изображение вообще не отображается. Если я вытащу все кнопки, появится изображение. Что именно не так с этим XML-файлом?ImageView не отображается в LinearLayout
<LinearLayout 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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:adjustViewBounds="true"
tools:context=".MainActivity" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/option1"
android:onClick="sendMessage" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/OR" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/option2"
android:onClick="sendMessage" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/Pic"
android:src="@drawable/soup" />
</LinearLayout>
По умолчанию ориентация Linearlayout горизонтальна. Сделайте его вертикальным. – Geros