# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
在项目开发过程中,常常需要对用户列表的信息进行删除的操作。Android中常用的删除操作方式有两种 ,一种就是类似微信的滑动出现删除按钮方式,还有一种是通过CheckBox进行选择,然后通过按钮进行删除的方式。本来的实例集成上述的两种操作方式来实现用户列表删除的效果。 设计思路:在适配器类MyAdapter一个滑动删除按钮显示或隐藏的Map,一个用于CheckBox是否选中的Map和一个与MainAcitivyt进行数据交互的接口ContentsDeleteListener,同时该接口包含两个方法,contentsDeleteSelect(int position, boolean isChecked)方法用于将选中或取消内容从选中List中加入或删除,contentDelete(int position)用于删除List中指定位置的列项。滑动的效果主要是通过当滑动的距离大于40时,显示滑动删除按钮,再执行删除操作时,将其他所有设置不可见,并设置CheckBox为不选中状态。
资源推荐
资源详情
资源评论
收起资源包目录
SlideAndSelectDeleteDemo.zip (64个子文件)
SlideAndSelectDeleteDemo
bin
classes.dex 688KB
res
crunch
drawable-hdpi
ic_launcher.png 6KB
drawable-xhdpi
my_list_check_box_bg_check.png 2KB
my_list__check_box_bg.png 850B
ic_launcher.png 9KB
del_icon_normal.png 351B
drawable-xxhdpi
ic_launcher.png 17KB
drawable-mdpi
ic_launcher.png 3KB
jarlist.cache 120B
dexedLibs
android-support-v4-3460a37b82cc0c29707d94c730eea4fd.jar 229KB
classes
com
example
slidedeleteandselectdemo
BuildConfig.class 381B
R$layout.class 504B
R$id.class 651B
R$drawable.class 644B
R$dimen.class 515B
R$attr.class 394B
R$menu.class 442B
R.class 983B
R$array.class 452B
R$string.class 591B
R$anim.class 453B
R$style.class 485B
slideandselectdeletedemo
MainActivity.class 4KB
MyAdapter$1.class 2KB
MyAdapter$2.class 1KB
MyAdapter$HolderView.class 758B
MyAdapter$3.class 2KB
MyAdapter$5.class 2KB
MyAdapter$ContentsDeleteListener.class 337B
MyAdapter.class 7KB
MyAdapter$4.class 3KB
resources.ap_ 47KB
SlideAndSelectDeleteDemo.apk 284KB
AndroidManifest.xml 914B
res
drawable-ldpi
values-v11
styles.xml 334B
menu
main.xml 386B
values-v14
styles.xml 391B
drawable-hdpi
ic_launcher.png 7KB
drawable-xhdpi
my_list_check_box_bg_check.png 4KB
my_list__check_box_bg.png 3KB
ic_launcher.png 12KB
del_icon_normal.png 351B
drawable
my_list_checkbox_selector.xml 517B
drawable-xxhdpi
ic_launcher.png 24KB
values
array.xml 678B
strings.xml 328B
styles.xml 697B
dimens.xml 220B
drawable-mdpi
ic_launcher.png 4KB
anim
anim_right_left.xml 294B
layout
activity_main.xml 758B
activity_main_list_view.xml 1KB
values-w820dp
dimens.xml 381B
proguard-project.txt 781B
ic_launcher-web.png 50KB
assets
gen
com
example
slidedeleteandselectdemo
BuildConfig.java 178B
R.java 4KB
src
com
example
slideandselectdeletedemo
MyAdapter.java 8KB
MainActivity.java 3KB
.project 860B
.classpath 475B
project.properties 563B
AndroidManifest.xml 914B
libs
android-support-v4.jar 613KB
共 64 条
- 1
IT狗探求
- 粉丝: 421
- 资源: 49
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于pytorch+Unet进行MRI肝脏图像分割源码+数据集+模型.zip
- 在Android Studio中开发一个Android App项目步骤
- 基于yolov8实现进行物体跟踪源码.zip
- Java多线程学习Java多线程学习Java多线程学习Java多线程学习.txt
- 算法数据结构-动态规划算法(Dynamic Programming)超详细总结加应用案例讲解.txt
- 2024最强秋招八股文(精简、纯手打)2024最强秋招八股文(精简、纯手打).txt
- 基于tensorflow多特征融合的微表情识别python源码.zip
- 基于yolov8实现人脸检测的python源码+运行说明.zip
- Micron Memory DDR3 SDRAM 全系列AD集成库(原理图库+PCB封装库).IntLib
- 基于tensorflow多特征融合的微表情识别python源码+详细使用说明.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页