展会信息港展会大全

如何令listview的每个item和header都可以展开
来源:互联网   发布日期:2016-01-14 11:30:52   浏览:2414次  

导读:com.andexert.expandablelayout.library.ExpandableLayoutItem android:id=@+id/expandableLayout xmlns:expandable=http://schemas.android.com/apk/res-auto android:layout_width=match_parent android:layout_height=match_parent expandable:headerLayo...

<com.andexert.expandablelayout.library.ExpandableLayoutItem

android:id="@+id/expandableLayout"

xmlns:expandable="http://schemas.android.com/apk/res-auto"

android:layout_width="match_parent"

android:layout_height="match_parent"

expandable:headerLayout="@layout/view_header"

expandable:contentLayout="@layout/view_content"/>

dependencies {

compile 'com.github.traex.expandablelayout:library:1.2.2'

}

<com.andexert.expandablelayout.library.ExpandableLayoutListView

android:id="@+id/expandableLayout"

xmlns:expandable="http://schemas.android.com/apk/res-auto"

android:layout_width="match_parent"

android:layout_height="match_parent"/>

赞助本站

人工智能实验室

相关热词: android开发 android教程

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港