Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code format for README.md #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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<ImageFile> list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_IMAGE);
Expand All @@ -64,6 +69,7 @@ Please star this library if you like it. :)
ArrayList<NormalFile> list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_FILE);
}
break;
```

## Version Log
1.0.0 Initial Version
Expand Down