From 5368d72df81d25feed730af889eb0f21dba0c545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E4=BB=BB=E5=BD=A6?= Date: Thu, 26 Sep 2019 19:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BBAndroidX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 ++-- .../imageselectdemo/MainActivity.java | 8 +++---- .../imageselectdemo/adapter/ImageAdapter.java | 2 +- app/src/main/res/layout/activity_main.xml | 2 +- gradle.properties | 4 +++- imageselector/build.gradle | 6 ++--- .../imageselector/ClipImageActivity.java | 2 +- .../imageselector/ImageSelectorActivity.java | 22 +++++++++---------- .../imageselector/PreviewActivity.java | 6 ++--- .../imageselector/adapter/FolderAdapter.java | 2 +- .../imageselector/adapter/ImageAdapter.java | 2 +- .../adapter/ImagePagerAdapter.java | 6 ++--- .../provider/ImageSelectorProvider.java | 2 +- .../imageselector/utils/ImageSelector.java | 2 +- .../imageselector/view/ClipImageView.java | 2 +- .../imageselector/view/MyViewPager.java | 2 +- .../imageselector/view/SquareImageView.java | 2 +- .../main/res/layout/activity_image_select.xml | 4 ++-- 18 files changed, 41 insertions(+), 39 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 498775a..dd55497 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,8 +20,8 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) testImplementation 'junit:junit:4.12' - implementation 'com.android.support:appcompat-v7:28.0.0' - implementation 'com.android.support:recyclerview-v7:28.0.0' + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.recyclerview:recyclerview:1.0.0' implementation 'com.github.bumptech.glide:glide:4.9.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0' implementation project(':imageselector') diff --git a/app/src/main/java/com/donkingliang/imageselectdemo/MainActivity.java b/app/src/main/java/com/donkingliang/imageselectdemo/MainActivity.java index d994bf0..25841e0 100644 --- a/app/src/main/java/com/donkingliang/imageselectdemo/MainActivity.java +++ b/app/src/main/java/com/donkingliang/imageselectdemo/MainActivity.java @@ -2,10 +2,10 @@ import android.content.Intent; import android.os.Bundle; -import android.support.v7.app.AppCompatActivity; -import android.support.v7.widget.GridLayoutManager; -import android.support.v7.widget.RecyclerView; -import android.util.Log; +import androidx.appcompat.app.AppCompatActivity; +import androidx.recyclerview.widget.GridLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + import android.view.View; import com.donkingliang.imageselectdemo.adapter.ImageAdapter; diff --git a/app/src/main/java/com/donkingliang/imageselectdemo/adapter/ImageAdapter.java b/app/src/main/java/com/donkingliang/imageselectdemo/adapter/ImageAdapter.java index f960485..f0b373f 100644 --- a/app/src/main/java/com/donkingliang/imageselectdemo/adapter/ImageAdapter.java +++ b/app/src/main/java/com/donkingliang/imageselectdemo/adapter/ImageAdapter.java @@ -1,7 +1,7 @@ package com.donkingliang.imageselectdemo.adapter; import android.content.Context; -import android.support.v7.widget.RecyclerView; +import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index f0faabc..2724c44 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -57,7 +57,7 @@ android:layout_toRightOf="@+id/btn_only_take" android:text="拍照并剪裁" /> - - -