Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/fragment_note_edit.xml')
-rw-r--r--app/src/main/res/layout/fragment_note_edit.xml19
1 files changed, 16 insertions, 3 deletions
diff --git a/app/src/main/res/layout/fragment_note_edit.xml b/app/src/main/res/layout/fragment_note_edit.xml
index 954351b0..a6ea2fde 100644
--- a/app/src/main/res/layout/fragment_note_edit.xml
+++ b/app/src/main/res/layout/fragment_note_edit.xml
@@ -3,7 +3,17 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="match_parent"
+ tools:background="?attr/colorPrimary">
+
+ <!-- Dummy item to prevent editContent from receiving focus -->
+ <LinearLayout
+ android:id="@+id/focus_workaround"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:orientation="horizontal" />
<ScrollView
android:id="@+id/scrollView"
@@ -17,12 +27,13 @@
android:id="@+id/editContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@null"
+ android:background="?attr/colorPrimary"
android:ems="10"
android:gravity="top"
android:inputType="textMultiLine|textCapSentences"
- android:padding="16dp"
+ android:padding="@dimen/spacer_2x"
android:textColor="@color/fg_default"
+ android:theme="@style/textViewStyle"
tools:text="@tools:sample/lorem/random" />
</ScrollView>
@@ -32,6 +43,7 @@
android:layout_gravity="bottom|end"
android:translationY="-56dp"
android:visibility="gone"
+ app:backgroundTint="@color/defaultBrand"
app:fabSize="mini"
app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp"
tools:visibility="visible" />
@@ -41,6 +53,7 @@
style="@style/fab"
android:layout_gravity="bottom|end"
android:visibility="gone"
+ app:backgroundTint="@color/defaultBrand"
app:fabSize="mini"
app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp"
tools:visibility="visible" />