From 250c307e253bc62a93068780453b735833ec94d3 Mon Sep 17 00:00:00 2001 From: Hendra Wijaya Djiono Date: Tue, 28 May 2019 23:33:40 +0700 Subject: [PATCH] Update code format for README.md Colorful is better :) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6ad11d8..583dda8 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,12 @@ Please star this library if you like it. :) ## Usage ### 1.Import to your project +```groovy compile 'com.vincent.filepicker:MultiTypeFilePicker:latestVersion' +``` ### 2.Start Activity For Result +```java case R.id.btn_pick_image: Intent intent1 = new Intent(this, ImagePickActivity.class); intent1.putExtra(IS_NEED_CAMERA, true); @@ -42,8 +45,10 @@ Please star this library if you like it. :) intent4.putExtra(NormalFilePickActivity.SUFFIX, new String[] {"xlsx", "xls", "doc", "docx", "ppt", "pptx", "pdf"}); startActivityForResult(intent4, Constant.REQUEST_CODE_PICK_FILE); break; +``` ### 3.Receive the Result from Activity +```java case Constant.REQUEST_CODE_PICK_IMAGE: if (resultCode == RESULT_OK) { ArrayList list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_IMAGE); @@ -64,6 +69,7 @@ Please star this library if you like it. :) ArrayList list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_FILE); } break; +``` ## Version Log 1.0.0 Initial Version