文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > ExpandableListView的用法
侵权投诉

ExpandableListView的用法

本文档是有关android中常用的ExpandableListView的用法

Android自定义ExpandableListView

效果图:

1,

步骤:

1, 主布局文件 main.xml 中加入:

<ExpandableListView

android:id="@+id/elist"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:background="#ffffff" />

2, 子视图布局文件 child_layout.xml

android:id="@+id/civ"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:padding="5dp"

android:src="@drawable/ic_launcher" />

<TextView

android:id="@+id/ctv"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:padding="5dp"

android:textColor="#000000" />

3, 分组视图布局文件 group_layout.xml

4, <TextView

5, android:id="@+id/gtv"

6, android:layout_width="wrap_content"

第1页

你可能喜欢

热门文档

相关文档

  • android中ExpandableListView的使用

    android中ExpandableListView的使用_计算机软件及应用_IT/计算机_专业资料。Xml 文件中的内容: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:...

  • Android开发之ExpandableListView

    的位置. ExpandableListView的Android:layout_height 属性使用wrap_content值。 ExpandableListView的 ScrollView的话,则不应该指定wrap_content的值,因为它可以是任意...

  • ExpandableListView笔记

    ExpandableListView笔记_IT/计算机_专业资料。ExpandableListView 笔记 ExpandableListVivew 是 ListView 的子类,它在普通 ListView 的基础上进行了扩展, 它把应用中的...

  • android ExpandableListView简单应用及listview模拟Exp...

    android ExpandableListView简单应用及listview模拟ExpandableListView_互联网_IT/计算机_专业资料。android ExpandableListView简单应用及listview模拟ExpandableListView...

  • android的ExpandableListView组件

    android的ExpandableListView组件_计算机软件及应用_IT/计算机_专业资料。android的ExpandableListView组件ExpandableListView / ExpandableListActivity 二者关系 和 ...

  • list的应用

    <ExpandableListView android:id="@id/android:list" android:layout_width="...webabcd 介绍在 Android 中使用各种控件(View) TextSwitcher - 文字转换器控件(...

  • Android-ExpandableListView

    Android-ExpandableListView_计算机软件及应用_IT/计算机_专业资料。Android-ExpandableListViewAVD SDK Activity_Main.xml <RelativeLayout xmlns:android="http://...

  • 各种Adapter的用法

    各种Adapter 的用法同样是一个 ListView, 可以用不同的 Adapter 让它显示出来,...{ android.R.layout.simple_expandable_list_item_1, getData())); 26 27...

  • ListView属性用法介绍android

    android.widget.Adapter> android.widget.AbsListView android.widget.ListView 直接子类 ExpandableListView (使用竖滚动条查看的两级列表视图) 类概述 通过竖滚动条...

  • C#+ListView用法详解+

    C#+ListView用法详解+_互联网_IT/计算机_专业资料。一、ListView 类 1、常用的基本属性: (1)FullRowSelect:设置是否行选择模式。(默认为 false) 提示:只有在...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email