我必须开发一个expandablelistview.here,如果我必须运行程序,这意味着它是工作的successfully...but我已经面临一个问题…问题是,如果我必须点击第一组意味着第一组孩子都会被显示,也会简单地显示第二组孩子空间……同样的问题也发生在这里,我不得不点击第二组意味着简单地显示第一组孩子空间后,显示第二组childrens...why这个错误是来here.please我的代码和给我solutions.please参考我的屏幕截图的时候,你就清楚地理解我的问题。

请帮助me...what的问题是here.why空间是否发生了here...please帮助我的朋友们。
下面的代码是我的android-layout:
<?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="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/payment_method1"
android:paddingLeft="5px"
android:textSize="15dip"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/payment_method"
android:paddingLeft="75px"
android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/total1"
android:paddingLeft="5px"
android:textSize="15dip"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/total"
android:paddingLeft="65px"
android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/firstname1"
android:paddingLeft="5px"
android:textSize="15dip"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/firstname"
android:paddingLeft="65px"
android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/lastname1"
android:paddingLeft="5px"
android:textSize="15dip"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/lastname"
android:paddingLeft="65px"
android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>发布于 2012-08-23 12:30:50
在我的android布局文件中做了一些修改之后,我得到了这个问题的解决方案。
https://stackoverflow.com/questions/12034569
复制相似问题