ImagePickerView New

Additional

Language
Kotlin
Version
N/A
Created
Jun 17, 2019
Updated
Nov 16, 2019
Owner
lhoyong
Contributor
lhoyong
1
Activity
Badge
Generate
Download
Source code

Show card

ImagePickerView

This is Simple Android ImagePicker Library.

Support DayNight Mode.

OverView

ScreenShot

Setup

Add root build.gradle

allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Add the dependency

dependencies {
         implementation 'com.github.lhoyong:ImagePickerView:latestVersion'
 }

Usage

Add ImagePickerView your Activity or Fragments Example.

val config = Config.Builder()
                   .max(5)
                   .build()

ImagePickerView.Builder()
   .config(config)
   .onImageLoaderListener(this)
   .build(supportFragmentManager)

Finish image select task, update ui for fun onLoad(uriList: List<Uri>)

override fun onLoad(uriList: List<Uri>) {
        (recycler_view.adapter as ImageAdapter).submitList(uriList)
}

License

Copyright (C) 2019 lhoyong.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.