├── .gitignore ├── .idea ├── .name ├── appInsightsSettings.xml ├── compiler.xml ├── deploymentTargetDropDown.xml ├── gradle.xml ├── inspectionProfiles │ └── Project_Default.xml ├── kotlinc.xml ├── migrations.xml ├── misc.xml ├── vcs.xml └── workspace.xml ├── LICENSE ├── README.md ├── app ├── .gitignore ├── build.gradle.kts ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── codebyashish │ │ └── autoimageslider │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── codebyashish │ │ │ └── autoimageslider │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable │ │ ├── ashish_text_bg.xml │ │ ├── ic_launcher_background.xml │ │ ├── ic_launcher_foreground.xml │ │ └── icon_face.png │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── values-night │ │ └── themes.xml │ │ ├── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── themes.xml │ │ └── xml │ │ ├── backup_rules.xml │ │ └── data_extraction_rules.xml │ └── test │ └── java │ └── com │ └── codebyashish │ └── autoimageslider │ └── ExampleUnitTest.kt ├── autoimageslider ├── .gitignore ├── build.gradle.kts ├── consumer-rules.pro ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── codebyashish │ │ └── autoimageslider │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── codebyashish │ │ │ └── autoimageslider │ │ │ ├── Adapter │ │ │ └── ViewAdapter.java │ │ │ ├── Animation │ │ │ ├── BackgroundToForeground.kt │ │ │ ├── CubeIn.kt │ │ │ ├── CubeOut.kt │ │ │ ├── DepthSlide.kt │ │ │ ├── FidgetSpinner.kt │ │ │ ├── FlipHorizontal.kt │ │ │ ├── FlipVertical.kt │ │ │ ├── ForegroundToBackground.kt │ │ │ ├── Gate.kt │ │ │ ├── RotateDown.kt │ │ │ ├── RotateUp.kt │ │ │ ├── Toss.kt │ │ │ ├── ZoomIn.kt │ │ │ └── ZoomOut.kt │ │ │ ├── AutoImageSlider.kt │ │ │ ├── Enums │ │ │ ├── ImageActionTypes.kt │ │ │ ├── ImageAnimationTypes.kt │ │ │ └── ImageScaleType.kt │ │ │ ├── ExceptionsClass.kt │ │ │ ├── Interfaces │ │ │ └── ItemsListener.kt │ │ │ ├── Models │ │ │ └── ImageSlidesModel.kt │ │ │ ├── PageScroller.kt │ │ │ └── PicassoTransformation.kt │ └── res │ │ ├── drawable │ │ ├── indicator_selected_dash.xml │ │ ├── indicator_selected_dot.xml │ │ ├── indicator_unselected_dash.xml │ │ ├── indicator_unselected_dot.xml │ │ ├── placeholder_default_loading.jpg │ │ ├── placeholder_image_failed.jpg │ │ └── text_background.xml │ │ ├── layout │ │ ├── item_pager.xml │ │ └── layout_slider_image.xml │ │ └── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ └── strings.xml │ └── test │ └── java │ └── com │ └── codebyashish │ └── autoimageslider │ └── ExampleUnitTest.java ├── build.gradle.kts ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── local.properties ├── preview.gif └── settings.gradle.kts /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | local.properties 16 | 17 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | AutoImageSlider -------------------------------------------------------------------------------- /.idea/appInsightsSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 44 | 45 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/deploymentTargetDropDown.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/migrations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 36 | 37 | 38 | 43 | 46 | 47 | 49 | 50 | 52 | 53 | 55 | 56 | 57 | 58 | 61 | 86 | 87 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 172 | 173 | 174 | 175 | 180 | 181 | 182 | 183 | 184 | 1685611455301 185 | 189 | 190 | 197 | 198 | 205 | 208 | 209 | 218 | 219 | 220 | 226 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Ashish Dangi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Auto-Image-Slider-Android 2 | Android auto image slide library. Compatible for Java and Kotlin, 3 | 4 | [![](https://jitpack.io/v/dangiashish/Auto-Image-Slider.svg)](https://jitpack.io/#dangiashish/Auto-Image-Slider) 5 | [![](https://img.shields.io/badge/android--sdk-24%2B-green)](https://developer.android.com/tools/sdkmanager) 6 | [![](https://img.shields.io/badge/compatible-java-blue)](https://www.java.com/) 7 | [![](https://img.shields.io/badge/compatible-kotlin-blueviolet)](https://kotlinlang.org/) 8 | [![Netlify Status](https://api.netlify.com/api/v1/badges/cbda5b77-3ff3-479d-aae4-7e2d79f87567/deploy-status)](https://app.netlify.com/sites/androidimageslider/deploys) 9 | 10 | 11 | 12 | 16 | 17 | 18 | ### Gradle 19 | 20 | Add repository in your `build.gradle` (project-level) file : 21 | ```gradle 22 | allprojects { 23 | repositories { 24 | ... 25 | maven { url 'https://jitpack.io' } 26 | } 27 | } 28 | ``` 29 | ##### OR 30 | in your `settings.gradle` 31 | 32 | ```gradle 33 | dependencyResolutionManagement { 34 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 35 | repositories { 36 | ... 37 | maven { url "https://jitpack.io" } 38 | } 39 | } 40 | ``` 41 | in your `settings.gradle.kts` 42 | ```gradle 43 | dependencyResolutionManagement { 44 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 45 | repositories { 46 | maven ( url ="https://jitpack.io" ) 47 | } 48 | } 49 | ``` 50 | ### Add dependency : 51 | 52 | Add dependency in your `build.gradle` (module-level) file : 53 | 54 | ```groovy 55 | dependencies{ 56 | 57 | implementation 'com.github.dangiashish:Auto-Image-Slider:1.0.6' 58 | } 59 | ``` 60 | ### Code Snippets : 61 | 62 | #### XML 63 | ```groovy 64 | 77 | ``` 78 | 79 | #### All Params 80 | 81 | ```groovy 82 | app:ais_auto_sliding="true" // Auto slide animation - true | false 83 | 84 | app:ais_corner_radius="10" // Widget Corner Radius - 0 | ....(n) 85 | 86 | app:ais_indicator_align="@string/center" // Dots Indicator Alignment - { LEFT | CENTER | RIGHT } 87 | 88 | app:ais_dots_visible="true" // Dots visibiliy - { true | false } 89 | 90 | app:ais_time_interval="1000" // Slide interval in milliseconds 91 | 92 | app:ais_slide_delay="2000" // Sliding delay by 2 seconds 93 | 94 | app:ais_placeholder="@drawable/placeholder.png" // any placeholder image untill real image load 95 | 96 | app:ais_exception_image="@drawable/error.png" // any error or failure image if image could not load 97 | 98 | app:ais_title_background="@drawable/custom_background.xml" // any custom drawable as text background 99 | 100 | app:ais_text_align="LEFT" // text/title alignment - { LEFT | CENTER | RIGHT } 101 | 102 | app:ais_title_color="@color/white" // assign any color to title 103 | ``` 104 | 105 | #### Kotlin 106 | ```groovy 107 | class MainActivity : AppCompatActivity() , ItemsListener { 108 | 109 | // declare a variable for ItemListener 110 | private var listener : ItemsListener? = null 111 | 112 | override fun onCreate(savedInstanceState: Bundle?) { 113 | super.onCreate(savedInstanceState) 114 | setContentView(R.layout.activity_main) 115 | 116 | // initialization of the listener 117 | listener = this 118 | 119 | // create an imageArrayList which extend ImageSlideModel class 120 | val autoImageList : ArrayList = ArrayList() 121 | 122 | // find and initialize ImageSlider 123 | val autoImageSlider = findViewById(R.id.autoImageSlider) 124 | 125 | // add some imagees or titles (text) inside the imagesArrayList 126 | autoImageList.add(ImageSlidesModel("https://picsum.photos/id/237/200/300", "First image")) 127 | autoImageList.add(ImageSlidesModel("https://picsum.photos/id/238/200/300", "")) 128 | autoImageList.add(ImageSlidesModel("https://picsum.photos/id/239/200/300", "Third image")) 129 | 130 | // set the added images inside the AutoImageSlider 131 | autoImageSlider.setImageList(autoImageList, ImageScaleType.FIT) 132 | 133 | // set any default animation or custom animation (setSlideAnimation(ImageAnimationTypes.ZOOM_IN)) 134 | autoImageSlider.setDefaultAnimation() 135 | 136 | // handle click event on item click 137 | autoImageSlider.onItemClickListener(listener) 138 | 139 | } 140 | 141 | override fun onItemChanged(position: Int) { 142 | // do what you want on item change event 143 | } 144 | 145 | override fun onTouched(actionTypes: ImageActionTypes?, position: Int) { 146 | // do what you want on item touch event 147 | } 148 | 149 | override fun onItemClicked(position: Int) { 150 | // do what you want on click event 151 | } 152 | } 153 | ``` 154 | 155 | #### Java 156 | ```groovy 157 | public class MainActivity extends AppCompatActivity implements ItemsListener { 158 | 159 | // declare a variable for ItemListener 160 | private ItemsListener listener; 161 | 162 | @Override 163 | protected void onCreate(Bundle savedInstanceState) { 164 | super.onCreate(savedInstanceState); 165 | setContentView(R.layout.activity_main); 166 | 167 | // initialization of the listener 168 | listener = this; 169 | 170 | // create an imageArrayList which extend ImageSlideModel class 171 | ArrayList autoImageList = new ArrayList<>(); 172 | 173 | // find and initialize ImageSlider 174 | AutoImageSlider autoImageSlider = findViewById(R.id.autoImageSlider); 175 | 176 | // add some imagees or titles (text) inside the imagesArrayList 177 | autoImageList.add(new ImageSlidesModel("https://picsum.photos/id/237/200/300", "First image")); 178 | autoImageList.add(new ImageSlidesModel("https://picsum.photos/id/238/200/300", "")); 179 | autoImageList.add(new ImageSlidesModel("https://picsum.photos/id/239/200/300", "Third image")); 180 | 181 | // set the added images inside the AutoImageSlider 182 | autoImageSlider.setImageList(autoImageList, ImageScaleType.FIT); 183 | 184 | // set any default animation or custom animation (setSlideAnimation(ImageAnimationTypes.ZOOM_IN)) 185 | autoImageSlider.setDefaultAnimation(); 186 | 187 | // handle click event on item click 188 | autoImageSlider.setOnItemClickListener(listener); 189 | } 190 | 191 | @Override 192 | public void onItemChanged(int position) { 193 | // Do what you want on item change event 194 | } 195 | 196 | @Override 197 | public void onTouched(ImageActionTypes actionTypes, int position) { 198 | // Do what you want on item touch event 199 | } 200 | 201 | @Override 202 | public void onItemClicked(int position) { 203 | // Do what you want on click event 204 | } 205 | } 206 | ``` 207 | 208 | ### Licence 209 | ``` 210 | MIT License 211 | 212 | Copyright (c) 2023 Ashish Dangi 213 | 214 | Permission is hereby granted, free of charge, to any person obtaining a copy 215 | of this software and associated documentation files (the "Software"), to deal 216 | in the Software without restriction, including without limitation the rights 217 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 218 | copies of the Software, and to permit persons to whom the Software is 219 | furnished to do so, subject to the following conditions: 220 | 221 | The above copyright notice and this permission notice shall be included in all 222 | copies or substantial portions of the Software. 223 | 224 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 225 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 226 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 227 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 228 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 229 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 230 | SOFTWARE. 231 | ``` 232 | 233 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /app/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("com.android.application") 3 | id("org.jetbrains.kotlin.android") 4 | id("maven-publish") 5 | 6 | 7 | } 8 | 9 | android { 10 | namespace = "com.codebyashish.autoimageslider" 11 | compileSdk = 34 12 | 13 | defaultConfig { 14 | applicationId = "com.codebyashish.autoimageslider" 15 | minSdk = 24 16 | targetSdk = 33 17 | versionCode = 1 18 | versionName = "1.0" 19 | 20 | testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" 21 | 22 | multiDexEnabled = true 23 | } 24 | 25 | buildTypes { 26 | release { 27 | isMinifyEnabled = false 28 | proguardFiles( 29 | getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" 30 | ) 31 | multiDexEnabled = true 32 | } 33 | getByName("debug") { 34 | multiDexEnabled = true 35 | } 36 | } 37 | compileOptions { 38 | sourceCompatibility = JavaVersion.VERSION_17 39 | targetCompatibility = JavaVersion.VERSION_17 40 | } 41 | kotlinOptions { 42 | jvmTarget = "17" 43 | } 44 | 45 | 46 | composeOptions { 47 | kotlinCompilerExtensionVersion = "1.4.5" 48 | } 49 | /* packaging { 50 | resources { 51 | excludes.add("/META-INF/{AL2.0,LGPL2.1}") 52 | } 53 | }*/ 54 | 55 | } 56 | 57 | dependencies { 58 | implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) 59 | implementation("com.squareup.picasso:picasso:2.71828") 60 | implementation("androidx.core:core-ktx:1.10.1") 61 | implementation("androidx.multidex:multidex:2.0.1") 62 | implementation("androidx.appcompat:appcompat:1.6.1") 63 | implementation("com.github.dangiashish:StyledCardView:1.0.0") 64 | implementation("com.google.android.material:material:1.9.0") 65 | implementation("androidx.constraintlayout:constraintlayout:2.1.4") 66 | implementation(project(mapOf("path" to ":autoimageslider"))) 67 | testImplementation("junit:junit:4.13.2") 68 | androidTestImplementation("androidx.test.ext:junit:1.1.5") 69 | androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") 70 | } -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/androidTest/java/com/codebyashish/autoimageslider/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.codebyashish.autoimageslider 2 | 3 | import androidx.test.platform.app.InstrumentationRegistry 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | assertEquals("com.codebyashish.imageslider", appContext.packageName) 23 | } 24 | } -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/codebyashish/autoimageslider/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.codebyashish.autoimageslider 2 | 3 | import android.content.Intent 4 | import android.net.Uri 5 | import android.os.Bundle 6 | import androidx.appcompat.app.AppCompatActivity 7 | import com.codebyashish.autoimageslider.Enums.ImageActionTypes 8 | import com.codebyashish.autoimageslider.Enums.ImageAnimationTypes 9 | import com.codebyashish.autoimageslider.Enums.ImageScaleType 10 | import com.codebyashish.autoimageslider.Interfaces.ItemsListener 11 | import com.codebyashish.autoimageslider.Models.ImageSlidesModel 12 | 13 | 14 | class MainActivity : AppCompatActivity(), ItemsListener { 15 | 16 | 17 | private lateinit var listener: ItemsListener 18 | var autoImageList = ArrayList() 19 | private lateinit var autoImageSlider: AutoImageSlider 20 | 21 | 22 | override fun onCreate(savedInstanceState: Bundle?) { 23 | super.onCreate(savedInstanceState) 24 | setContentView(R.layout.activity_main) 25 | 26 | 27 | autoImageSlider = findViewById(R.id.autoImageSlider) 28 | try { 29 | autoImageList.add( 30 | ImageSlidesModel( 31 | R.drawable.ic_launcher_foreground, "https://google.com", "Face", 32 | ImageScaleType.FIT 33 | ) 34 | ) 35 | autoImageList.add( 36 | ImageSlidesModel( 37 | "", 38 | "https://google.com", 39 | "title 2", 40 | ImageScaleType.FIT 41 | ) 42 | ) 43 | autoImageSlider.setImageList(autoImageList, ImageScaleType.FIT) 44 | autoImageSlider.setSlideAnimation(ImageAnimationTypes.ZOOM_IN) 45 | } catch (e: ExceptionsClass) { 46 | e.printStackTrace() 47 | } 48 | autoImageSlider.onItemClickListener(this) 49 | } 50 | 51 | override fun onItemChanged(position: Int) { 52 | 53 | } 54 | 55 | override fun onTouched(actionTypes: ImageActionTypes?, position: Int) { 56 | 57 | } 58 | 59 | override fun onItemClicked(position: Int) { 60 | val model = autoImageList[position] 61 | val intent = Intent(Intent.ACTION_VIEW, Uri.parse(model.clickUrl)) 62 | intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK 63 | startActivity(intent) 64 | } 65 | 66 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ashish_text_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon_face.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/drawable/icon_face.png -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dangiashish/Auto-Image-Slider/d82bcc1da4feccccb8aae074f8ce1fd1af1f4152/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FF000000 4 | #FFFFFFFF 5 | 6 | 7 | #FBFBFB 8 | #ff9e9e9e 9 | #7F000000 10 | #FFFFFF 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Android Image Slider 3 | dash 4 | dot 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 |