MultiImagePicker for Android Application, written in Kotlin
It provides...
rootProject/build.gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
app/build.gradle
dependencies {
implementation 'com.github.WindSekirun:NaraeImagePicker:2.0.6'
}
Warning, I changed package name starting from 2.0.0.
val settingItem = PickerSettingItem().apply {
pickLimit = Constants.LIMIT_UNLIMITED
viewMode = ViewMode.FolderView
enableDetailMode = true
uiSetting.enableUpInParentView = true
uiSetting.themeResId = R.style.AppTheme
uiSetting.pickerTitle = "Custom Picker Title"
uiSetting.fileSpanCount = 3
uiSetting.folderSpanCount = 2
}
NaraeImagePicker.instance.start(this, settingItem, object : OnPickResultListener {
override fun onSelect(resultCode: Int, imageList: ArrayList<String>) {
if (resultCode != NaraeImagePicker.PICK_SUCCESS) {
toast("Failed to pick image")
return
}
}
})
You should insert this statement in android block in app/build.gradle
packagingOptions {
exclude 'META-INF/library_release.kotlin_module'
}
ver 2.0.7 (2020-09-13)
ver 2.0.6 (2019-10-21)
ver 2.0.5 (2019-10-13)
ver 2.0.0 (2019-05-15)
ver 1.8.0 (2018-12-06)
ver 1.7.1 (2018-12-04)
ver 1.7.0 (2018-12-04)
For older history, refer to RELEASE.md
Copyright 2017 WindSekirun (DongGil, Seo)
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.