2010-06-21 71 views
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> 

回答

1

OK ......我失踪 机器人:方向= “垂直”

似乎现在的工作:)

相关问题