diff --git a/README.md b/README.md index 01b9660..4123acc 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); +intent.putExtra("keyword",".txt"); +//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' }