UW Media Picker-Android
Easy to use and customizable media picker library to pick multiple images(with compression) and videos for Android.
Supported Features
- Multiple image and/or video selecting
- Image compression
- Image preview by press and holding the image
- Async album loading with Kotlin Coroutine
- Limit the maximum number of selectable media
- Customizable grid column count
- All colors customizable by overriding it
Installation
You can have a look at the sample project.
1. Include library
Add it in your root build.gradle at the end of repositories:
Add the dependency to your app level build.gradle:
Usage
Make sure you have READ_EXTERNAL_STORAGE
permission.
In addition, if you use compression make sure you have WRITE_EXTERNAL_STORAGE
permission too.
On Android Q, you should add android:requestLegacyExternalStorage="true"
into your application tag in manifest
Initializing UW Media Picker
Getting results
UI Customization
- You can override these colors in your
colors.xml
for ui customization.
- You can override these strings in your
strings.xml
for ui and language changes.