From 86e69fbe3a9ec80117c0b4d71168c1cbb9528673 Mon Sep 17 00:00:00 2001 From: Paolo Rotolo Date: Sun, 28 Jan 2018 18:42:53 +0100 Subject: [PATCH 1/2] Update build Tools and gradle. --- app/build.gradle | 12 ++++++------ build.gradle | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b5da977..0011fce 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,13 +1,13 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 23 - buildToolsVersion = "23.0.1" + compileSdkVersion 27 + buildToolsVersion = "27.0.3" defaultConfig { applicationId "saulmm.myapplication" minSdkVersion 21 - targetSdkVersion 23 + targetSdkVersion 27 versionCode 1 versionName "1.0" } @@ -21,8 +21,8 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:23.2.1' - compile 'com.android.support:design:23.2.1' - compile 'com.android.support:cardview-v7:23.2.1' + compile 'com.android.support:appcompat-v7:27.0.2' + compile 'com.android.support:design:27.0.2' + compile 'com.android.support:cardview-v7:27.0.2' compile 'de.hdodenhof:circleimageview:1.3.0' } diff --git a/build.gradle b/build.gradle index c2a9c99..6d95c81 100644 --- a/build.gradle +++ b/build.gradle @@ -4,14 +4,16 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.2.0-alpha3' + classpath 'com.android.tools.build:gradle:3.0.1' } } allprojects { repositories { jcenter() + google() } } From c3b81810ee68a4784dceae311276386ec0cef4e6 Mon Sep 17 00:00:00 2001 From: Paolo Rotolo Date: Sun, 28 Jan 2018 18:45:28 +0100 Subject: [PATCH 2/2] Update CircleImageView and correct code to use new API. --- app/build.gradle | 2 +- app/src/main/res/layout/activity_main.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0011fce..f729f1c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -24,5 +24,5 @@ dependencies { compile 'com.android.support:appcompat-v7:27.0.2' compile 'com.android.support:design:27.0.2' compile 'com.android.support:cardview-v7:27.0.2' - compile 'de.hdodenhof:circleimageview:1.3.0' + compile 'de.hdodenhof:circleimageview:2.2.0' } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index e408cb7..d4dd6d3 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -145,8 +145,8 @@ android:layout_height="@dimen/image_width" android:layout_gravity="center_horizontal" android:src="@drawable/quila" - app:border_color="@android:color/white" - app:border_width="2dp" + app:civ_border_color="@android:color/white" + app:civ_border_width="2dp" app:finalHeight="@dimen/image_final_width" app:finalYPosition="2dp" app:layout_behavior="saulmm.myapplication.AvatarImageBehavior"