【发布时间】:2012-10-01 12:39:53
【问题描述】:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
android:orientation="vertical" >
<ScrollView
android:layout_width="wrap_content"
android:layout_height="fill_parent" >
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="fill_parent"
android:layout_height="600dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
<include
android:id="@+id/include1"
android:layout_width="fill_parent"
android:layout_height="70dp"
layout="@layout/header_history" >
</include>
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000"
android:divider="@android:color/black"
android:dividerHeight="1.0sp"
android:textColor="#000000" />
</RelativeLayout>
</ScrollView>
</RelativeLayout>
header_history
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/button" >
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@drawable/button"
android:gravity="left|center_vertical"
android:text=" History"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/white"
android:textSize="24sp"
android:textStyle="bold" />
</RelativeLayout>
我正在尝试使我的列表视图可滚动,但它已变为可滚动,但我无法找到列表视图的详细信息。请帮助我。朋友们,我也更新了 header_history 文件。
【问题讨论】:
标签: android