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

HASSSSH 2016-03-30 02:46:42

仿微信的朋友圈,用的是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>
...全文
172 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
HASSSSH 2016-03-30
  • 打赏
  • 举报
回复
好吧,原来是我用代码设置ChildDividerDivider了.......

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧