Skip to content

Commit 0827ffc

Browse files
authored
Merge pull request #3 from gdingenen/androidx
Androidx
2 parents 65e620a + d64df11 commit 0827ffc

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.6.3'
8+
classpath 'com.android.tools.build:gradle:4.0.1'
99
}
1010
}
1111

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ POM_LICENCE_DIST=repo
1212
POM_DEVELOPER_ID=emilsjolander
1313
POM_DEVELOPER_NAME=Emil Sjolander
1414
POM_DEVELOPER_EMAIL[email protected]
15+
android.useAndroidX=true
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sat May 16 20:45:03 CEST 2020
1+
#Wed Sep 09 14:55:00 CEST 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.android.library'
22

33
dependencies {
4-
implementation 'com.android.support:support-annotations:28.0.0'
5-
implementation 'com.android.support:customview:28.0.0'
4+
implementation 'androidx.annotation:annotation:1.1.0'
5+
implementation 'androidx.customview:customview:1.1.0'
66
}
77

88
android {

library/src/se/emilsjolander/stickylistheaders/ExpandableStickyListHeadersListView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import android.content.Context;
44
import android.os.Parcel;
55
import android.os.Parcelable;
6-
import android.support.v4.view.AbsSavedState;
6+
import androidx.customview.view.AbsSavedState;
77
import android.util.AttributeSet;
88
import android.view.View;
99
import java.util.ArrayList;

sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ repositories {
66

77
dependencies {
88
compile project(':library')
9-
compile 'com.android.support:appcompat-v7:28.0.0'
10-
compile 'com.android.support:support-v4:28.0.0'
9+
compile 'androidx.appcompat:appcompat:1.2.0'
10+
compile 'androidx.legacy:legacy-support-v4:1.0.0'
1111
compile 'com.nineoldandroids:library:2.4.0'
1212
}
1313

sample/res/layout/main.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<android.support.v4.widget.DrawerLayout
1+
<androidx.drawerlayout.widget.DrawerLayout
22
xmlns:android="http://schemas.android.com/apk/res/android"
33
android:id="@+id/drawer_layout"
44
android:layout_width="match_parent"
@@ -9,7 +9,7 @@
99
android:layout_height="match_parent"
1010
android:orientation="vertical">
1111

12-
<android.support.v4.widget.SwipeRefreshLayout
12+
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
1313
android:id="@+id/refresh_layout"
1414
android:layout_width="match_parent"
1515
android:layout_height="match_parent">
@@ -25,7 +25,7 @@
2525
android:fastScrollEnabled="true"
2626
android:overScrollMode="never"/>
2727

28-
</android.support.v4.widget.SwipeRefreshLayout>
28+
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
2929

3030
<TextView
3131
android:id="@+id/empty"
@@ -124,4 +124,4 @@
124124
android:checked="true"/>
125125
</LinearLayout>
126126
</ScrollView>
127-
</android.support.v4.widget.DrawerLayout>
127+
</androidx.drawerlayout.widget.DrawerLayout>

sample/src/se/emilsjolander/stickylistheaders/sample/TestActivity.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
import android.os.Build;
77
import android.os.Bundle;
88
import android.os.Handler;
9-
import android.support.v4.app.ActionBarDrawerToggle;
10-
import android.support.v4.widget.DrawerLayout;
11-
import android.support.v4.widget.SwipeRefreshLayout;
12-
import android.support.v7.app.ActionBarActivity;
9+
10+
import androidx.appcompat.app.AppCompatActivity;
11+
import androidx.legacy.app.ActionBarDrawerToggle;
12+
import androidx.drawerlayout.widget.DrawerLayout;
13+
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
1314
import android.view.MenuItem;
1415
import android.view.View;
1516
import android.widget.AdapterView;
@@ -23,7 +24,7 @@
2324
/**
2425
* @author Emil Sjölander
2526
*/
26-
public class TestActivity extends ActionBarActivity implements
27+
public class TestActivity extends AppCompatActivity implements
2728
AdapterView.OnItemClickListener, StickyListHeadersListView.OnHeaderClickListener,
2829
StickyListHeadersListView.OnStickyHeaderOffsetChangedListener,
2930
StickyListHeadersListView.OnStickyHeaderChangedListener {

0 commit comments

Comments
 (0)