Skip to content

aqoong/SlidePhotoViewer

Repository files navigation

SlidePhotoViewer

[Android CustomView] SlidePhotoViewer

  • Normal Mode
    Alt Text
  • Preview Mode
    Alt Text

How to Using

  • .xml
<com.aqoong.lib.slidephotoviewer.SlidePhotoViewer
        android:id="@+id/slideViewer"
        android:background="@color/colorAccent"
        android:layout_width="match_parent"
        android:layout_height="100dp"
	app:itemBackground="@drawable/slidephotoviewer_default_item_background"
	app:sidePreview="true"				//side preview function
        app:useIndicator="true"
        app:autoSlide="true"
        app:maxSize="10"                                //image list max size 
        app:autoSlide_repeat_time="1000"                //millisecond
        app:placeholder="@drawable/ic_placeholder"      //image placeholder
        />


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

dependencies { implementation 'com.github.aqoong:SlidePhotoViewer:TAG' } [TAG list]

  • AndroidX support
    1.2.0
  • If you don't use androidx
    1.1.0

Using Library

another