|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<!-- |
| 1 | +<?xml version="1.0" encoding="utf-8"?><!-- |
3 | 2 | ~ Nextcloud Notes - Android Client
|
4 | 3 | ~
|
5 | 4 | ~ SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
|
20 | 19 | android:focusableInTouchMode="true"
|
21 | 20 | android:orientation="horizontal" />
|
22 | 21 |
|
23 |
| - <ScrollView |
24 |
| - android:id="@+id/scrollView" |
| 22 | + <androidx.constraintlayout.widget.ConstraintLayout |
25 | 23 | android:layout_width="match_parent"
|
26 | 24 | android:layout_height="match_parent"
|
27 |
| - android:fillViewport="true" |
28 |
| - android:orientation="vertical" |
29 |
| - tools:context="it.niedermann.owncloud.notes.edit.EditNoteActivity"> |
| 25 | + android:orientation="vertical"> |
30 | 26 |
|
31 |
| - <it.niedermann.android.markdown.MarkdownEditorImpl |
32 |
| - android:id="@+id/editContent" |
| 27 | + <ScrollView |
| 28 | + android:id="@+id/scrollView" |
| 29 | + android:layout_width="match_parent" |
| 30 | + android:layout_height="0dp" |
| 31 | + android:fillViewport="true" |
| 32 | + android:orientation="vertical" |
| 33 | + app:layout_constraintBottom_toTopOf="@id/controller" |
| 34 | + app:layout_constraintEnd_toEndOf="parent" |
| 35 | + app:layout_constraintStart_toStartOf="parent" |
| 36 | + app:layout_constraintTop_toTopOf="parent" |
| 37 | + tools:context="it.niedermann.owncloud.notes.edit.EditNoteActivity"> |
| 38 | + |
| 39 | + <it.niedermann.android.markdown.MarkdownEditorImpl |
| 40 | + android:id="@+id/editContent" |
| 41 | + android:layout_width="match_parent" |
| 42 | + android:layout_height="wrap_content" |
| 43 | + android:layout_marginHorizontal="@dimen/spacer_activity_sides" |
| 44 | + android:background="@android:color/transparent" |
| 45 | + android:ems="10" |
| 46 | + android:gravity="top" |
| 47 | + android:inputType="textMultiLine|textCapSentences" |
| 48 | + android:lineSpacingMultiplier="@dimen/note_line_spacing" |
| 49 | + android:padding="@dimen/spacer_2x" |
| 50 | + android:textColor="@color/fg_default" |
| 51 | + tools:text="@tools:sample/lorem/random" /> |
| 52 | + </ScrollView> |
| 53 | + |
| 54 | + <it.niedermann.android.markdown.controller.MarkdownToolbarController |
| 55 | + android:id="@+id/controller" |
33 | 56 | android:layout_width="match_parent"
|
34 | 57 | android:layout_height="wrap_content"
|
35 |
| - android:layout_marginHorizontal="@dimen/spacer_activity_sides" |
36 |
| - android:background="@android:color/transparent" |
37 |
| - android:ems="10" |
38 |
| - android:gravity="top" |
39 |
| - android:inputType="textMultiLine|textCapSentences" |
40 |
| - android:lineSpacingMultiplier="@dimen/note_line_spacing" |
41 |
| - android:padding="@dimen/spacer_2x" |
42 |
| - android:textColor="@color/fg_default" |
43 |
| - tools:text="@tools:sample/lorem/random" /> |
44 |
| - </ScrollView> |
| 58 | + android:gravity="bottom" |
| 59 | + app:layout_constraintBottom_toBottomOf="parent" |
| 60 | + app:layout_constraintEnd_toEndOf="parent" |
| 61 | + app:layout_constraintStart_toStartOf="parent" |
| 62 | + app:menu="@menu/toolbar" /> |
45 | 63 |
|
46 |
| - <com.google.android.material.floatingactionbutton.FloatingActionButton |
47 |
| - android:id="@+id/searchPrev" |
48 |
| - style="?attr/floatingActionButtonSmallSecondaryStyle" |
49 |
| - android:layout_width="wrap_content" |
50 |
| - android:layout_height="wrap_content" |
51 |
| - android:layout_gravity="bottom|end" |
52 |
| - android:layout_margin="@dimen/spacer_2x" |
53 |
| - android:contentDescription="@string/simple_prev" |
54 |
| - android:translationY="-56dp" |
55 |
| - android:visibility="gone" |
56 |
| - app:backgroundTint="@color/defaultBrand" |
57 |
| - app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp" |
58 |
| - tools:visibility="visible" /> |
| 64 | + <com.google.android.material.floatingactionbutton.FloatingActionButton |
| 65 | + android:id="@+id/searchPrev" |
| 66 | + style="?attr/floatingActionButtonSmallSecondaryStyle" |
| 67 | + android:layout_width="wrap_content" |
| 68 | + android:layout_height="wrap_content" |
| 69 | + android:layout_gravity="bottom|end" |
| 70 | + android:layout_margin="@dimen/spacer_2x" |
| 71 | + android:contentDescription="@string/simple_prev" |
| 72 | + android:translationY="-56dp" |
| 73 | + android:visibility="gone" |
| 74 | + app:backgroundTint="@color/defaultBrand" |
| 75 | + app:layout_constraintBottom_toTopOf="@id/controller" |
| 76 | + app:layout_constraintEnd_toEndOf="parent" |
| 77 | + app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp" |
| 78 | + tools:visibility="visible" /> |
59 | 79 |
|
60 |
| - <com.google.android.material.floatingactionbutton.FloatingActionButton |
61 |
| - android:id="@+id/searchNext" |
62 |
| - style="?attr/floatingActionButtonSmallSecondaryStyle" |
63 |
| - android:layout_width="wrap_content" |
64 |
| - android:layout_height="wrap_content" |
65 |
| - android:layout_gravity="bottom|end" |
66 |
| - android:layout_margin="@dimen/spacer_2x" |
67 |
| - android:contentDescription="@string/simple_next" |
68 |
| - android:visibility="gone" |
69 |
| - app:backgroundTint="@color/defaultBrand" |
70 |
| - app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp" |
71 |
| - tools:visibility="visible" /> |
| 80 | + <com.google.android.material.floatingactionbutton.FloatingActionButton |
| 81 | + android:id="@+id/searchNext" |
| 82 | + style="?attr/floatingActionButtonSmallSecondaryStyle" |
| 83 | + android:layout_width="wrap_content" |
| 84 | + android:layout_height="wrap_content" |
| 85 | + android:layout_gravity="bottom|end" |
| 86 | + android:layout_margin="@dimen/spacer_2x" |
| 87 | + android:contentDescription="@string/simple_next" |
| 88 | + android:visibility="gone" |
| 89 | + app:backgroundTint="@color/defaultBrand" |
| 90 | + app:layout_constraintBottom_toTopOf="@id/controller" |
| 91 | + app:layout_constraintEnd_toEndOf="parent" |
| 92 | + app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp" |
| 93 | + tools:visibility="visible" /> |
72 | 94 |
|
73 |
| - <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton |
74 |
| - android:id="@+id/direct_editing" |
75 |
| - style="?attr/floatingActionButtonPrimaryStyle" |
76 |
| - android:layout_width="wrap_content" |
77 |
| - android:layout_height="wrap_content" |
78 |
| - android:layout_gravity="bottom|end" |
79 |
| - android:layout_margin="@dimen/spacer_2x" |
80 |
| - android:contentDescription="@string/noteMode_rich_edit" |
81 |
| - android:text="@string/noteMode_rich_edit" |
82 |
| - android:visibility="visible" |
83 |
| - app:backgroundTint="@color/defaultBrand" |
84 |
| - app:layout_anchor="@id/scrollView" |
85 |
| - app:layout_anchorGravity="bottom|end" |
86 |
| - app:icon="@drawable/ic_rich_editing" /> |
| 95 | + <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton |
| 96 | + android:id="@+id/direct_editing" |
| 97 | + style="?attr/floatingActionButtonPrimaryStyle" |
| 98 | + android:layout_width="wrap_content" |
| 99 | + android:layout_height="wrap_content" |
| 100 | + android:layout_gravity="bottom|end" |
| 101 | + android:layout_margin="@dimen/spacer_2x" |
| 102 | + android:contentDescription="@string/noteMode_rich_edit" |
| 103 | + android:text="@string/noteMode_rich_edit" |
| 104 | + android:visibility="visible" |
| 105 | + app:backgroundTint="@color/defaultBrand" |
| 106 | + app:icon="@drawable/ic_rich_editing" |
| 107 | + app:layout_anchor="@id/scrollView" |
| 108 | + app:layout_anchorGravity="bottom|end" |
| 109 | + app:layout_constraintBottom_toTopOf="@id/controller" |
| 110 | + app:layout_constraintEnd_toEndOf="parent" /> |
| 111 | + </androidx.constraintlayout.widget.ConstraintLayout> |
87 | 112 | </androidx.coordinatorlayout.widget.CoordinatorLayout>
|
0 commit comments