在ListLayout的标题和底部的android ListView黑线

时间:2014-06-07 04:08:15

标签: android-layout listview

请healp我删除标题和底部的黑线。我还附上我的xml供你参考。非常感谢你。 我无法发布图片,请参阅下面的链接

http://i.stack.imgur.com/KM5p0.png

    <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout  xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layoutRemind"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/wood">

    <RelativeLayout 
        android:id="@+id/header"
        style="@style/NavBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" 
        >
        <TextView
            android:id="@+id/tvTitle"
            style="@style/NavBarText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textSize="18dp"
            android:padding="10dp"
            android:textAllCaps="true"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <ImageButton
            android:id="@+id/imgbtnShare"
            style="@style/NavBarShareBtn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            />
    </RelativeLayout >

    <RelativeLayout 
        android:id="@+id/footer"
        style="@style/NavBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" 
        android:layout_alignParentBottom="true"
        >


        <ImageButton
            android:id="@+id/btn1"
            style="@style/NavBarBackBtn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            />

    </RelativeLayout >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content" 
        android:padding="5dp"
        android:layout_above="@id/footer"
        android:layout_below="@id/header">

        <ListView
        android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:divider="@drawable/divider"
        android:scrollingCache="false"
        android:overScrollMode="never"
        android:dividerHeight="1px"/>

    </LinearLayout>
</RelativeLayout >

0 个答案:

没有答案