From 4a79c862fbf97bb4ba301ecce55ea99d13a25c9c Mon Sep 17 00:00:00 2001 From: Sanimys <36693490+Sanimys@users.noreply.github.com> Date: Thu, 21 May 2020 21:40:27 +0200 Subject: [PATCH] Move crop button (#197) * Moved the crop button so that it doesn't take space in the activity * Semi transparent in the middle, same position than the image Co-authored-by: Joachim Dunant --- .../main/res/layout/content_photo_edit.xml | 102 +++++++++++------- 1 file changed, 66 insertions(+), 36 deletions(-) diff --git a/app/src/main/res/layout/content_photo_edit.xml b/app/src/main/res/layout/content_photo_edit.xml index c32c97b9..f3ad48d3 100644 --- a/app/src/main/res/layout/content_photo_edit.xml +++ b/app/src/main/res/layout/content_photo_edit.xml @@ -1,46 +1,76 @@ - + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools"> - + android:layout_height="match_parent" + tools:context=".PhotoEditActivity" + tools:showIn="@layout/activity_photo_edit" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + > + + + + + + + + + + + + + + - - - - - - \ No newline at end of file + android:layout_marginTop="411dp" + android:backgroundTint="#FFFFFFFF" + android:src="@drawable/ic_crop_black_24dp" + app:layout_constraintLeft_toLeftOf="@+id/left_guideline" + app:layout_constraintRight_toRightOf="@+id/right_guideline" + app:layout_constraintBottom_toBottomOf="@+id/bottom_guideline" /> + \ No newline at end of file