groupview是一个自定义layout 手指在上面滑动后会有两种不同的效果 分别入截图所示 有那个兄弟遇到过类似的情况,搞了一天了 也没找出来原因。下面是groupview的layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:background="@drawable/group_label_selector">
<TextView android:id="@+id/group_title" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_weight="1"
android:gravity="center_vertical|left" android:layout_marginLeft="7dp"
android:textColor="@color/text_black" android:textSize="13sp"/>
<ImageView android:id="@+id/group_arrow" android:src="@drawable/arrow_down"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="5dp" android:layout_marginTop="3dp"/>
</LinearLayout>

解决方案 »

  1.   

    自己结贴吧 是由于groupview用到的背景是.9 最下面有两个像素位置是透明的 滑动就会显示出背景色 但是为什么滑动会显示背景色 我也想不通 我把groupview的所有状态都改成同一张背景 还是有这个问题 欢迎继续讨论
      

  2.   

    好像是android绘制view的时候 如果上面一层有覆盖物 下面的view不一定都会给你设置背景导致 类似的情况我用两个RelativeLayout也遇到 上面透明 下面设了一个背景色 时不时的会黑。。nnd
      

  3.   

    楼主  groupView的右边箭头没展开时是向右的  展开之后是往下的  怎么实现的?