Posts

Showing posts from June, 2018

Android Curl View Animation | Java | Kotlin | And

Step 1.  Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories: allprojects { repositories { .. . maven { url ' https://jitpack.io ' } } } Step 2.  Add the dependency dependencies { compile ' com.github.yogeshpaliyal:Android-Curl-View-Animation:-SNAPSHOT ' } Step 3.  Add Curl View To Your Layout < techpaliyal .com.curlviewanimation.CurlView android : layout_width = " match_parent " android : layout_height = " match_parent " app : horizontal_two_page = " false " android : id = " @+id/curlView " /> Step 4.  Create Int Array (JAVA) Java ArrayList< Integer > arrImages = new ArrayList< Integer > (); Kotlin var arrImages = ArrayList< Int > () Step 5.  Load Array(Both Java & Kotlin) arrImages . add( R . drawable . img1); arrImages . add( R . drawable . img2);