您的位置:首页 > 移动开发 > Android开发

android去掉ExpandableListView的group中的child的默认边框

2017-01-02 05:08 423 查看


仿微信的朋友圈,用的是ExpandableListView



在一个item里面,这部分是属于groupview



这部分是属于childview,不明白为什么会有默认的边框

这是我的ExpandableListView
<com.handmark.pulltorefresh.library.PullToRefreshExpandableListView

        xmlns:ptr="http://schemas.android.com/apk/res-auto"

        android:id="@+id/moments_all_expandable_list"

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:cacheColorHint="@android:color/transparent"

        android:dividerPadding="0dp"

        android:dividerHeight="0dp"

        ptr:ptrAnimationStyle="flip"

        ptr:ptrMode="both" />


这是我childview的item所用的布局
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:background="@color/bg_gray4"

    android:orientation="horizontal"

    android:paddingBottom="4dp"

    android:paddingTop="4dp" >

    <TextView

        android:id="@+id/reply_text"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:background="@drawable/background_gray4"

        android:gravity="center_vertical"

        android:paddingLeft="7dp"

        android:paddingRight="7dp"

        android:text="texttexttexttexttexttexttexttexttext"

        android:textColor="@color/black"

        android:textSize="14.5sp" />

</LinearLayout>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: