File tree 6 files changed +20
-12
lines changed
app/src/main/java/com/smarteist/imageslider
src/main/java/com/smarteist/autoimageslider
6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change
1
+ * .iml
2
+ .gradle
3
+ /local.properties
4
+ /.idea /libraries
5
+ /.idea /modules.xml
6
+ /.idea /workspace.xml
7
+ .DS_Store
8
+ /build
9
+ /captures
10
+ .externalNativeBuild
Original file line number Diff line number Diff line change 2
2
3
3
import android .graphics .Color ;
4
4
import android .os .Bundle ;
5
+ import android .util .Log ;
5
6
import android .view .View ;
6
7
7
8
import androidx .appcompat .app .AppCompatActivity ;
@@ -40,10 +41,11 @@ protected void onCreate(Bundle savedInstanceState) {
40
41
sliderView .setAutoCycle (true );
41
42
sliderView .startAutoCycle ();
42
43
44
+
43
45
sliderView .setOnIndicatorClickListener (new DrawController .ClickListener () {
44
46
@ Override
45
47
public void onIndicatorClicked (int position ) {
46
- sliderView .setCurrentPagePosition ( position );
48
+ Log . i ( "GGG" , "onIndicatorClicked: " + sliderView .getCurrentPagePosition () );
47
49
}
48
50
});
49
51
Original file line number Diff line number Diff line change 15
15
siteUrl = ' https://github.com/smarteist'
16
16
gitUrl = ' https://github.com/smarteist/android-image-slider.git'
17
17
18
- libraryVersion = ' 1.3.8 '
18
+ libraryVersion = ' 1.3.9 '
19
19
organization = ' smarteistbintray' // if you push to organization's repository.
20
20
developerId = ' smarteist'
21
21
developerName = ' Ali Hosseini'
@@ -34,7 +34,7 @@ android {
34
34
minSdkVersion 15
35
35
targetSdkVersion 29
36
36
versionCode 5
37
- versionName " 1.3.8 "
37
+ versionName " 1.3.9 "
38
38
39
39
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
40
40
@@ -57,7 +57,7 @@ configurations {
57
57
dependencies {
58
58
implementation fileTree(include : [' *.jar' ], dir : ' libs' )
59
59
// noinspection GradleCompatible
60
- implementation ' androidx.appcompat:appcompat:1.0.2 '
60
+ implementation ' androidx.appcompat:appcompat:1.1.0 '
61
61
testImplementation ' junit:junit:4.12'
62
62
androidTestImplementation ' androidx.test:runner:1.2.0'
63
63
androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0'
Original file line number Diff line number Diff line change @@ -436,11 +436,7 @@ public void setCurrentPagePosition(int position) {
436
436
public int getCurrentPagePosition () {
437
437
438
438
if (getSliderAdapter () != null ) {
439
- if (mIsInfiniteAdapter ) {
440
- return getSliderPager ().getCurrentItem () % mPagerAdapter .getCount ();
441
- } else {
442
- return getSliderPager ().getCurrentItem ();
443
- }
439
+ return getSliderPager ().getCurrentItem () ;
444
440
} else {
445
441
throw new NullPointerException ("Adapter not set" );
446
442
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
8
8
jcenter()
9
9
}
10
10
dependencies {
11
- classpath ' com.android.tools.build:gradle:3.4.1 '
11
+ classpath ' com.android.tools.build:gradle:4.0.0 '
12
12
classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
13
13
classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
14
14
Original file line number Diff line number Diff line change 1
- # Tue May 28 00:46:48 IRDT 2019
1
+ # Thu Jun 11 18:51:38 IRDT 2020
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-5 .1.1-all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6 .1.1-all.zip
You can’t perform that action at this time.
0 commit comments