基于Java的仿iOS的搜索控件SearchView.zip

上传者: sheziqiong | 上传时间: 2022-06-17 09:08:40 | 文件大小: 510KB | 文件类型: ZIP
资源包含文件+设计报告word+APP项目源码 本项目为使用Java实现的仿IOS的搜索控件。本项目实现的功能包括: 搜索字居中,点击后输入框获取焦点,搜索字显示在输入框的左边;点击屏幕的任何地方收起软件盘;输入框加入删除输入内容功能。具体实现思路如下:继承EditText;设置焦点监听,软键盘监听,输入框监听;重写onDraw方法,根据输入框的状态绘制hit文字和搜索图片;处理Touch事件。 详细介绍参考:https://biyezuopin.blog.csdn.net/article/details/122907493?spm=1001.2014.3001.5502

文件下载

资源详情

[{"title":"( 49 个子文件 510KB ) 基于Java的仿iOS的搜索控件SearchView.zip","children":[{"title":"ios-likesearchcontrol","children":[{"title":"设计报告.docx <span style='color:#111;'> 384.71KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"example","children":[{"title":"fussen","children":[{"title":"searchview","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 403B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"example","children":[{"title":"fussen","children":[{"title":"searchview","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 754B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"icon_setting_btn.png <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"icon_search.png <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"acm_inputbox.9.png <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"icon_add_btn.png <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"search_bar_icon_normal.png <span style='color:#111;'> 598B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"bg_top_text.xml <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"bg_search.xml <span style='color:#111;'> 284B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"seabar_input.9.png <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"ic_edit_input_clear.png <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"example","children":[{"title":"fussen","children":[{"title":"searchview","children":[{"title":"MainActivity.java <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"SearchEditText.java <span style='color:#111;'> 5.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 665B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 873B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 233B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"gradle.xml <span style='color:#111;'> 626B </span>","children":null,"spread":false},{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 357B </span>","children":null,"spread":false},{"title":"dictionaries","children":[{"title":"Fussen.xml <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":false},{"title":"encodings.xml <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 498B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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