0
我试图在listactivity列表之前显示图像。Android - 如何在列表活动中将ImageView显示为标题?
如果我把一个ImageView的ListView控件之前,则仅会显示在列表...还是相当的机器人的n00b所以任何指针赞赏:)
我的继承人的main.xml其中规定了列表活动:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView android:id="@+id/header"
android:src="@drawable/header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:scaleType="fitStart"
/>
<ListView android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scaleType="fitEnd"
/>
</LinearLayout>