Simple, Powerful and Beautiful Android Image or Video Picker ?
Features ?
- No need check storage permission ?
- Single and multiple selection
- Supported RTL and LTR list direction (default=LTR)
- Supported image and video (default=image)
- Supported custom title
- Supported custom colors
- Supported dynamic span count (default=2)
- Limit max item selection (default=1)
- Show file directory
- Show file size
Screenshots
Image | Image | Video |
---|---|---|
Download
Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.majidarabi:AndroidFilePicker:0.0.4'
}
Usage (Just Kotlin)
showFilePicker(
gridSpanCount = 3,
limitItemSelection = 5,
listDirection = ListDirection.RTL,
fileType = if (video) FileType.VIDEO else FileType.IMAGE,
titleTextColor = ContextCompat.getColor(this, R.color.black),
submitTextColor = ContextCompat.getColor(this, R.color.white),
accentColor = ContextCompat.getColor(this, R.color.purple_200),
) {
// Do something here with selected files
}
Author
Majid Arabi
- Github: @majidarabi
- Linkedin: @majidarabi
- Telegram: @one_developer
- Site: http://one-developer.ir
- Email: [email protected]