首页 移动开发 Android     /    Android搜索功能的案例,本地保存搜索历史记录。

Android搜索功能的案例,本地保存搜索历史记录。

上传者: leoleohan | 上传时间:2023/3/20 1:25:56 | 文件大小:2.66MB | 文件类型:zip
Android搜索功能的案例,本地保存搜索历史记录。
本案例实现起来很简单,所以可以直接拿来嵌入项目中使用,涉及到的知识点:-数据库的增删改查操作-ListView和ScrollView的嵌套冲突处理-监听软键盘回车按钮设置为搜索按钮-使用TextWatcher()实时筛选-已搜索的关键字再次搜索不重复添加到数据库-刚进入页面设置软键盘不因为EditText而自动弹出 本软件ID:9435911

文件下载

资源详情

[{"title":"(51个子文件2.66MB)Android搜索功能的案例,本地保存搜索历史记录。","children":[{"title":"SearchRecords","children":[{"title":".project <span style='color:#111;'>816B</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":"cwvs","children":[{"title":"microlife","children":[{"title":"RecordSQLiteOpenHelper.java <span style='color:#111;'>682B</span>","children":null,"spread":false},{"title":"MyListView.java <span style='color:#111;'>692B</span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'>5.51KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'>996B</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},{"title":"back.png <span style='color:#111;'>405B</span>","children":null,"spread":false},{"title":"search.png <span style='color:#111;'>867B</span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'>324B</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":"activity_main.xml <span style='color:#111;'>3.33KB</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}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>170B</span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'>680B</span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'>381B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>173B</span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"cwvs","children":[{"title":"microlife","children":[{"title":"BuildConfig.java <span style='color:#111;'>160B</span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'>2.03KB</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;'>1.30MB</span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'>466B</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":"resources.ap_ <span style='color:#111;'>41.25KB</span>","children":null,"spread":false},{"title":"SearchRecords.apk <span style='color:#111;'>489.48KB</span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"cwvs","children":[{"title":"microlife","children":[{"title":"R$layout.class <span style='color:#111;'>403B</span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'>431B</span>","children":null,"spread":false},{"title":"MainActivity$4.class <span style='color:#111;'>1.80KB</span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'>345B</span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'>465B</span>","children":null,"spread":false},{"title":"MyListView.class <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'>340B</span>","children":null,"spread":false},{"title":"RecordSQLiteOpenHelper.class <span style='color:#111;'>1.43KB</span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'>481B</span>","children":null,"spread":false},{"title":"MainActivity$2.class <span style='color:#111;'>1.99KB</span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'>579B</span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'>433B</span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'>898B</span>","children":null,"spread":false},{"title":"MainActivity$3.class <span style='color:#111;'>1.74KB</span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'>5.26KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'>996B</span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-37073255da3aef4c513559e3352e8f77.jar <span style='color:#111;'>440.31KB</span>","children":null,"spread":false}],"spread":false},{"title":"jarlist.cache <span style='color:#111;'>120B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>5.82KB</span>","children":null,"spread":false},{"title":"back.png <span style='color:#111;'>196B</span>","children":null,"spread":false},{"title":"search.png <span style='color:#111;'>499B</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.04KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>17.47KB</span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>9.14KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'>1.32MB</span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • 茄子炒蛋:
    不错的,用起来了,很好用2019-04-19
  • axej:
    代码使用AS可以调试使用2018-11-29
  • 且随疾风前行:
    受教了,很不错的例子!2016-10-31
  • woshidulei:
    还不错,代码很清晰2016-09-20
  • Cathyzb:
    不错不错有用到2016-06-06

免责申明

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