version
Manifests.xml
<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name="com.gallery.ui.activity.GalleryActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<activity
android:name="com.gallery.ui.activity.PreActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
dependencies
implementation 'com.ydevelop:gallery.ui:0.0.1'
implementation 'com.ydevelop:gallery.glide:0.0.1'
demo
Gallery
.instance
.apply {
// gallery config
}.ui(this)
ImageLoader
class SimpleImageLoader : GalleryImageLoader {
override fun displayGallery(view: ImageView, width: Int, height: Int, galleryEntity: ScanEntity) : View{
}
override fun displayGalleryThumbnails(view: ImageView, finderEntity: FinderEntity) : View{
}
override fun displayPreview(view: ImageView, galleryEntity: ScanEntity) : View{
}
}