listview嵌gridview,并实现grid元素部分显示以及点击展开与折叠

上传者: duguju | 上传时间: 2020-01-03 11:19:41 | 文件大小: 956KB | 文件类型: rar
有时我们需要用GridView显示目录列表,有时甚至是二级的,即listview每一个item里面又各自嵌入一个gridview,但是当二级目录(数据条目)的数量过多时,界面会比较臃肿,这时我们就想要有类似展开与折叠的效果,作者采用的策略是数据分段的分别显示,其中对于显示边界(处于限制显示数目的特定位置)的控件要有数据的动态更新和点击判断操作。

文件下载

资源详情

[{"title":"( 44 个子文件 956KB ) listview嵌gridview,并实现grid元素部分显示以及点击展开与折叠","children":[{"title":"GridinList-ClicktoFolder&Collapse","children":[{"title":"bin","children":[{"title":"res","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"gridinlist","children":[{"title":"MainActivity.class <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"MyGridView.class <span style='color:#111;'> 814B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 633B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"MyAdapter$1.class <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"MyAdapter$2.class <span style='color:#111;'> 3.18KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 352B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 445B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"MyAdapter.class <span style='color:#111;'> 6.17KB </span>","children":null,"spread":false},{"title":"MyAdapter$ViewHolder.class <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 864B </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"btn_normal.png <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"selected_orange.png <span style='color:#111;'> 1014B </span>","children":null,"spread":false},{"title":"btn_selected.png <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"btn_txt_bg.xml <span style='color:#111;'> 511B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 227B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"adapter_listview.xml <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"adapter_gridview.xml <span style='color:#111;'> 479B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"gridinlist","children":[{"title":"BuildConfig.java <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"gridinlist","children":[{"title":"MyAdapter.java <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 852B </span>","children":null,"spread":false},{"title":"MyGridView.java <span style='color:#111;'> 580B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 846B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 864B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 972.29KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • 谁动了我的凌枫 :
    东西不错,就是太贵了
    2020-02-22
  • 与草枯荣 :
    一般吧,没用到
    2019-05-23
  • weixin_43145983 :
    不错,很实用
    2019-03-11
  • lth541795704 :
    比相关书籍介绍的详细,顶一个.
    2018-07-09
  • 长沙万里无云 :
    学习了,用在项目上了。还不错。
    2018-05-14

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明