本文实例讲述了Android开发实现ListView点击展开收起效果。分享给大家供大家参考,具体如下:
废话不说先上效果:
实际上这是采用一个ExpandableListView实现的
布局文件很简单:
<?xml version=1.0 encoding=utf-8?>
<LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android
xmlns:tools=http://schemas.android.com/tools
android:layout_width=match_par