From 15b4c6aacca6bae4cc867c163f6e29a88b2ff3f8 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 7 Jan 2020 14:51:11 +1100 Subject: [PATCH] Implement profile picture editing --- build.gradle | 1 + res/layout/activity_home.xml | 2 +- res/layout/activity_settings.xml | 503 +++++++++--------- .../contacts/avatars/ProfileContactPhoto.java | 3 +- .../redesign/activities/RegisterActivity.kt | 8 +- .../redesign/activities/SettingsActivity.kt | 137 ++++- .../loki/redesign/views/ProfilePictureView.kt | 3 +- .../securesms/recipients/Recipient.java | 2 +- 8 files changed, 398 insertions(+), 261 deletions(-) diff --git a/build.gradle b/build.gradle index d003f75977..ea4d2068e4 100644 --- a/build.gradle +++ b/build.gradle @@ -197,6 +197,7 @@ dependencies { } implementation "com.jakewharton.rxbinding3:rxbinding:3.1.0" implementation "com.github.tbruyelle:rxpermissions:0.10.2" + implementation "com.github.ybq:Android-SpinKit:1.4.0" } def canonicalVersionCode = 23 diff --git a/res/layout/activity_home.xml b/res/layout/activity_home.xml index 7bb054d771..498738cf9d 100644 --- a/res/layout/activity_home.xml +++ b/res/layout/activity_home.xml @@ -24,7 +24,7 @@ android:id="@+id/profileButton" android:layout_width="@dimen/small_profile_picture_size" android:layout_height="@dimen/small_profile_picture_size" - android:layout_marginLeft="8dp" + android:layout_marginLeft="10dp" android:layout_alignParentLeft="true" android:layout_centerVertical="true" /> diff --git a/res/layout/activity_settings.xml b/res/layout/activity_settings.xml index fb333e9969..d2b6fd429f 100644 --- a/res/layout/activity_settings.xml +++ b/res/layout/activity_settings.xml @@ -1,258 +1,283 @@ - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@drawable/default_session_background"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:scrollbars="none"> + android:orientation="vertical" + android:gravity="center_horizontal"> -