首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为ExpandableListView创建布局

为ExpandableListView创建布局
EN

Stack Overflow用户
提问于 2012-08-20 16:40:28
回答 1查看 607关注 0票数 2

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

请帮助me...what的问题是here.why空间是否发生了here...please帮助我的朋友们。

下面的代码是我的android-layout:

代码语言:javascript
复制
   <?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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-23 12:30:50

在我的android布局文件中做了一些修改之后,我得到了这个问题的解决方案。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12034569

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档