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>
<?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>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货