文件名称:ExpandableListView:仿京东购物车折叠listview列表
文件大小:2.76MB
文件格式:ZIP
更新时间:2024-06-07 03:47:44
Java
##一、简介 在日常开发,有可能会遇到需要一些可以展开的列表,比如QQ的好友列表。但是,用Android的该怎么做呢?其实在我没有接触过ExpandableListView类之前,都是自定义控件继承于ListView或者ListView嵌套ListView来实现的, 当然也不推荐大家这样使用, 这样使用会降低app页面的加载速度和性能. 然后,后来发现了Android也给我们提供了ExpandableListView类,完美实现这样类似的需求, 极大的方便了我们开发. ##二、使用 引用, AndroidStudio使用Gradle构建添加依赖(推荐) compile 'com.facebook.fresco:fresco:0.9.0' compile 'com.zhy:autolayout:1.4.5' 使用到的第三方框架 图片加载缓存框架 屏幕适配框架 Demo来自某个线上
【文件预览】:
ExpandableListView-master
----.gitignore(118B)
----app()
--------.gitignore(7B)
--------build.gradle(922B)
--------src()
--------proguard-rules.pro(637B)
----settings.gradle(15B)
----build.gradle(498B)
----gradlew(5KB)
----LICENSE(11KB)
----example.gif(2.65MB)
----README.md(1KB)
----gradlew.bat(2KB)
----gradle.properties(730B)
----.idea()
--------misc.xml(3KB)
--------encodings.xml(159B)
--------gradle.xml(705B)
--------vcs.xml(180B)
--------copyright()
--------runConfigurations.xml(564B)
--------inspectionProfiles()
--------compiler.xml(686B)
--------modules.xml(669B)
----gradle()
--------wrapper()
----screenshot()
--------img2.png(44KB)
--------img1.png(34KB)
--------img3.png(52KB)