Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/
.idea
122 changes: 0 additions & 122 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

30 changes: 0 additions & 30 deletions .idea/jarRepositories.xml

This file was deleted.

29 changes: 0 additions & 29 deletions .idea/markdown-navigator-enh.xml

This file was deleted.

55 changes: 0 additions & 55 deletions .idea/markdown-navigator.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

41 changes: 26 additions & 15 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
plugins {
id("com.vanniktech.maven.publish") version "0.29.0"
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 30
compileSdk 34

defaultConfig {
applicationId "com.kenilt.loopingviewpager.example"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 21
targetSdkVersion 34
versionCode 1
versionName "1.0"

Expand All @@ -21,26 +23,35 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
namespace 'com.kenilt.loopingviewpager.example'

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '17'
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':loopingviewpager')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.3.0-beta01'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'me.relex:circleindicator:2.1.4'
implementation 'com.kenilt.circleindicator:circleindicator:1.0.1'
implementation "com.psoffritti.librarysampleapptemplate:core:1.0.2"
implementation 'com.tbuonomo.andrui:viewpagerdotsindicator:4.1.2'
implementation 'com.romandanylyk:pageindicatorview:1.0.3'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'me.relex:circleindicator:2.1.6'
implementation 'io.github.kenilt:circleindicator:1.1.0'
implementation 'com.github.PierfrancescoSoffritti:library-sample-app-template:v1.0.3'
implementation("com.tbuonomo:dotsindicator:5.0")
implementation 'com.github.romandanylyk:PageIndicatorView:v.1.0.3'
implementation 'com.ogaclejapan.smarttablayout:library:2.0.0@aar'

implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'

}
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kenilt.loopingviewpager.example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand All @@ -13,7 +12,8 @@
<activity android:name=".indicatorExample.IndicatorExampleActivity" />
<activity android:name=".fragmentStatePager.FragmentStatePagerExampleActivity" />
<activity android:name=".fragmentPager.FragmentPagerExampleActivity" />
<activity android:name=".MainActivity">
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
package com.kenilt.loopingviewpager.example.fragmentPager

import android.os.Bundle
import android.widget.Button
import android.widget.SeekBar
import android.widget.Switch
import android.widget.TextView
import com.kenilt.circleindicator.CirclePageIndicator
import com.kenilt.loopingviewpager.example.BaseExampleActivity
import com.kenilt.loopingviewpager.example.R
import com.kenilt.loopingviewpager.example.model.DataGenerator
import com.kenilt.loopingviewpager.example.simpleExample.ExamplePagerAdapter
import com.kenilt.loopingviewpager.scroller.AutoScroller
import kotlinx.android.synthetic.main.activity_fragment_pager_example.*
import com.kenilt.loopingviewpager.widget.LoopingViewPager

class FragmentPagerExampleActivity : BaseExampleActivity() {

private lateinit var vpPager: LoopingViewPager
private lateinit var indicator: CirclePageIndicator
private lateinit var swAutoScroll: Switch
private lateinit var btnPrevious: Button
private lateinit var btnNext: Button
private lateinit var seekBar: SeekBar
private lateinit var txtItemCount: TextView

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_fragment_pager_example)

vpPager = findViewById(R.id.vpPager)
indicator = findViewById(R.id.indicator)
swAutoScroll = findViewById(R.id.swAutoScroll)
btnPrevious = findViewById(R.id.btnPrevious)
btnNext = findViewById(R.id.btnNext)
seekBar = findViewById(R.id.seekBar)
txtItemCount = findViewById(R.id.txtItemCount)

// View pager adapter and indicator
vpPager.setAdapter(
ExampleFragmentPagerAdapter(
Expand Down
Loading