From 2d3a2614f04b286fe8fcb0c294810b252a0e83c4 Mon Sep 17 00:00:00 2001 From: YuanWenHai Date: Tue, 15 Nov 2016 15:06:30 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01b9660..63ec526 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,20 @@ # FileSearcher A simple fileSearcher. -![image](http://i.makeagif.com/media/11-01-2016/BqiRN9.gif) +![image](http://i.makeagif.com/media/11-15-2016/UWYh3x.gif) ## How to start FileSearcherActivity from our activity,do not forget the keyword. ```java Intent intent = new Intent(MainActivity.this, FileSearcherActivity.class); intent.putExtra("keyword",content); +//optional------ + +intent.putExtra("max",50 * 1024);//size filter +intent.putExtra("min",50 * 1024); +intent.putExtra("theme",R.style.SearchTheme);//set custom theme here + + startActivityForResult(intent,REQUEST_CODE); ``` then we deal selected data in onActivityResult @@ -20,6 +27,16 @@ then we deal selected data in onActivityResult } } ``` +## Theme +optional,you can use custom theme. +```xml + + +``` ## Dependency Step 1. Add the JitPack repository to your build file @@ -35,5 +52,5 @@ Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency dependencies { - compile 'com.github.YuanWenHai:FileSearcher:1.2' + compile 'com.github.YuanWenHai:FileSearcher:1.3.1' } From f2c3f22dec7c32d61556000606490e1427d8b772 Mon Sep 17 00:00:00 2001 From: YuanWenHai Date: Tue, 15 Nov 2016 15:07:50 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63ec526..9bdef09 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ A simple fileSearcher. start FileSearcherActivity from our activity,do not forget the keyword. ```java Intent intent = new Intent(MainActivity.this, FileSearcherActivity.class); -intent.putExtra("keyword",content); +intent.putExtra("keyword",".txt"); //optional------ -intent.putExtra("max",50 * 1024);//size filter +//intent.putExtra("max",50 * 1024);//size filter intent.putExtra("min",50 * 1024); intent.putExtra("theme",R.style.SearchTheme);//set custom theme here From 26e93913284f38b14b43b3487f28189cfbc80710 Mon Sep 17 00:00:00 2001 From: YuanWenHai Date: Tue, 15 Nov 2016 15:11:20 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9bdef09..4123acc 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ then we deal selected data in onActivityResult ## Theme optional,you can use custom theme. ```xml - +