【发布时间】:2016-05-23 16:18:54
【问题描述】:
我在我的 android 应用中添加了一个 ImageView。半图像显示在应用程序标题栏(显示应用程序名称的栏)下方,而不是显示在应用程序标题栏下方。这是我的代码:
<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:orientation="vertical"
tools:context=".TopLevelActivity">
<ImageView
android:layout_width="200dp"
android:layout_height="100dp"
android:src="@drawable/logo"
android:contentDescription="@string/logo" />
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/list_options"
android:entries="@array/options"/>
【问题讨论】: