android ListView显示和隐藏二级内容

上传者: chadeltu | 上传时间: 2019-12-21 19:32:19 | 文件大小: 469KB | 文件类型: zip
android中,使用ListView时,有时候发现每一个item内容比较多,无法一次性全显示。这时需要把重点内容显示,其他内容隐藏起来,点击某一项时才弹出详细信息。本工程实现了以上功能点,希望有所帮助!

文件下载

资源详情

[{"title":"( 50 个子文件 469KB ) android ListView显示和隐藏二级内容","children":[{"title":"DropDownList","children":[{"title":".project <span style='color:#111;'> 848B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"dropdownlist","children":[{"title":"MyAdapter.java <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"ListItem.java <span style='color:#111;'> 114B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 888B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 332B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"activity_main.xml <span style='color:#111;'> 257B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"bg_list_item.xml <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"shape_imageview.xml <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"bg_btn.xml <span style='color:#111;'> 345B </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":"list_item.xml <span style='color:#111;'> 3.82KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 602B </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":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false},{"title":"default_pic.png <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"bkg_drop_area.png <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"btn_pressed.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"btn_normal.png <span style='color:#111;'> 4.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"color.xml <span style='color:#111;'> 258B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 348B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 695B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 389B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"dropdownlist","children":[{"title":"BuildConfig.java <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 376.65KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"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":"bin","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"dropdownlist","children":[{"title":"R$layout.class <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"MyAdapter$1.class <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"ListItem.class <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"ViewHolder.class <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 357B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 671B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 358B </span>","children":null,"spread":false},{"title":"MyAdapter$2.class <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"MyAdapter$3.class <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 705B </span>","children":null,"spread":false},{"title":"MyAdapter$4.class <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 581B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"R$color.class <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"MyAdapter.class <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 888B </span>","children":null,"spread":false},{"title":"res","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • syyingxue :
    谢谢啦,先用下看看效果
    2017-08-20
  • 希拉克 :
    可以,感觉上挺管用
    2016-01-25
  • egizz :
    可以使用,折叠效果可以的
    2015-12-11
  • 我爱源码啊啊啊 :
    动画效果不错
    2015-10-20

免责申明

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