Android indexOf搜索文件示例.rar

上传:CSDN阿坤 浏览: 19 推荐: 0 文件:RAR 大小:7.6KB 上传时间:2020-08-08 05:17:41 版权申诉
Android 系统中搜索文件的一个简单例子,功能和Windows搜索文件相似,不过实现上就差别大了:先载入main.xml Layout ,初始化对象: mKeyword=(EditText)findViewById(R.id.mKeyword); mButton=(Button)findViewById(R.id.mButton); mResult=(TextView) findViewById(R.id.mResult); 然后定义一个方法,将mButton添加onClickListener,取得输入的关键字,再创建搜索文件的method: private Strin
上传资源
用户评论