Mercurial > cgi-bin > hgweb.cgi > SimpleResizer
comparison app/src/main/res/layout/activity_edit_image.xml @ 2:06825e49f7aa
Got it scaling and rotating, needs settings, etc.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 07 Feb 2021 21:08:34 -0800 |
parents | 13935000c2d9 |
children | 884092efe31a |
comparison
equal
deleted
inserted
replaced
1:f26f61a8a9ad | 2:06825e49f7aa |
---|---|
4 xmlns:tools="http://schemas.android.com/tools" | 4 xmlns:tools="http://schemas.android.com/tools" |
5 android:layout_width="match_parent" | 5 android:layout_width="match_parent" |
6 android:layout_height="match_parent" | 6 android:layout_height="match_parent" |
7 tools:context=".EditImage"> | 7 tools:context=".EditImage"> |
8 | 8 |
9 <TextView | 9 <ImageView |
10 android:id="@+id/image_status_report" | 10 android:id="@+id/image" |
11 android:layout_width="wrap_content" | 11 android:layout_width="wrap_content" |
12 android:layout_height="wrap_content" | 12 android:layout_height="wrap_content" |
13 android:text="TextView" | 13 android:layout_marginBottom="5dp" |
14 app:layout_constraintBottom_toBottomOf="parent" | 14 android:contentDescription="Image being processed." |
15 android:scaleType="centerInside" | |
16 app:layout_constraintBottom_toTopOf="@id/scale_button" | |
15 app:layout_constraintEnd_toEndOf="parent" | 17 app:layout_constraintEnd_toEndOf="parent" |
16 app:layout_constraintStart_toStartOf="parent" | 18 app:layout_constraintStart_toStartOf="parent" |
17 app:layout_constraintTop_toTopOf="parent" /> | 19 app:layout_constraintTop_toTopOf="parent" /> |
20 | |
21 <TextView | |
22 android:id="@+id/image_size" | |
23 android:layout_width="wrap_content" | |
24 android:layout_height="wrap_content" | |
25 android:layout_marginTop="5dp" | |
26 android:text="TextView" | |
27 app:layout_constraintStart_toStartOf="@id/image" | |
28 app:layout_constraintEnd_toEndOf="@id/image" | |
29 app:layout_constraintTop_toBottomOf="@id/image" /> | |
30 | |
31 <Button | |
32 android:id="@+id/scale_button" | |
33 android:layout_width="wrap_content" | |
34 android:layout_height="wrap_content" | |
35 android:onClick="scaleClicked" | |
36 android:text="@string/scale_text" | |
37 app:layout_constraintBottom_toTopOf="@id/cancel_button" | |
38 app:layout_constraintEnd_toStartOf="@id/rotate_button" | |
39 app:layout_constraintStart_toStartOf="parent" | |
40 app:layout_constraintTop_toBottomOf="@id/image_size" /> | |
41 | |
42 <Button | |
43 android:id="@+id/rotate_button" | |
44 android:layout_width="wrap_content" | |
45 android:layout_height="wrap_content" | |
46 android:onClick="rotateClicked" | |
47 android:text="@string/rotate_text" | |
48 app:layout_constraintBottom_toTopOf="@id/done_button" | |
49 app:layout_constraintEnd_toEndOf="parent" | |
50 app:layout_constraintStart_toEndOf="@id/scale_button" | |
51 app:layout_constraintTop_toBottomOf="@id/image_size" /> | |
52 | |
53 <Button | |
54 android:id="@+id/cancel_button" | |
55 android:layout_width="wrap_content" | |
56 android:layout_height="wrap_content" | |
57 android:onClick="cancelClicked" | |
58 android:text="@string/cancel_text" | |
59 app:layout_constraintBottom_toBottomOf="parent" | |
60 app:layout_constraintEnd_toStartOf="@id/done_button" | |
61 app:layout_constraintStart_toStartOf="parent" | |
62 app:layout_constraintTop_toBottomOf="@id/scale_button" /> | |
63 | |
64 <Button | |
65 android:id="@+id/done_button" | |
66 android:layout_width="wrap_content" | |
67 android:layout_height="wrap_content" | |
68 android:onClick="doneClicked" | |
69 android:text="@string/done_text" | |
70 app:layout_constraintBottom_toBottomOf="parent" | |
71 app:layout_constraintEnd_toEndOf="parent" | |
72 app:layout_constraintStart_toEndOf="@id/cancel_button" | |
73 app:layout_constraintTop_toBottomOf="@id/rotate_button" /> | |
74 | |
18 </androidx.constraintlayout.widget.ConstraintLayout> | 75 </androidx.constraintlayout.widget.ConstraintLayout> |