aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorMarvin Borner2018-09-01 19:01:29 +0200
committerMarvin Borner2018-09-01 19:01:29 +0200
commit48b79e040fa4d633d203dbcbd05eceddbedab636 (patch)
tree1fc11b1115fe3ec12212dd48828eaa7a32e7fd3c /app/src/main/res/layout
parent8ab9ed2a0ef2a73b7e61a68321f8e99475593483 (diff)
Added undo and redo buttons
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_photo_editor.xml30
1 files changed, 27 insertions, 3 deletions
diff --git a/app/src/main/res/layout/activity_photo_editor.xml b/app/src/main/res/layout/activity_photo_editor.xml
index df62664..da1621f 100644
--- a/app/src/main/res/layout/activity_photo_editor.xml
+++ b/app/src/main/res/layout/activity_photo_editor.xml
@@ -33,8 +33,8 @@
<Button
android:id="@+id/photoDrawButton"
- android:layout_width="50dp"
- android:layout_height="50dp"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
android:layout_marginEnd="24dp"
android:layout_marginTop="24dp"
android:background="@drawable/ic_mode_edit_white_24dp"
@@ -43,7 +43,7 @@
<com.rtugeek.android.colorseekbar.ColorSeekBar
android:id="@+id/drawColorSeekbar"
- android:layout_width="50dp"
+ android:layout_width="30dp"
android:layout_height="300dp"
android:layout_marginEnd="24dp"
android:layout_marginTop="16dp"
@@ -55,4 +55,28 @@
app:layout_constraintTop_toBottomOf="@+id/photoDrawButton"
app:thumbHeight="40dp" />
+ <Button
+ android:id="@+id/undoButton"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_alignParentStart="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginStart="24dp"
+ android:layout_marginTop="24dp"
+ android:background="@drawable/ic_undo_white_24dp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <Button
+ android:id="@+id/redoButton"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="24dp"
+ android:background="@drawable/ic_redo_white_24dp"
+ app:layout_constraintStart_toEndOf="@+id/undoButton"
+ app:layout_constraintTop_toTopOf="parent" />
+
</android.support.constraint.ConstraintLayout> \ No newline at end of file