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:
authorStefan Niedermann <info@niedermann.it>2021-03-20 13:45:12 +0300
committerStefan Niedermann <info@niedermann.it>2021-03-20 13:45:12 +0300
commitf261eeb1bd7a4ad76ac5a4d13308c1124cab23b2 (patch)
tree4725bdead4d0c586bd7ab3d47e83ce04228f2c3b
parentd5f787a85259944c5871233996988ac16fdc6aaf (diff)
Prepare #1089 Move line spacing to variable
-rw-r--r--app/src/main/res/layout/fragment_note_edit.xml1
-rw-r--r--app/src/main/res/layout/fragment_note_preview.xml1
-rw-r--r--app/src/main/res/layout/widget_single_note_content.xml1
-rw-r--r--app/src/main/res/values/dimens.xml2
4 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_note_edit.xml b/app/src/main/res/layout/fragment_note_edit.xml
index e4388865..1e84909f 100644
--- a/app/src/main/res/layout/fragment_note_edit.xml
+++ b/app/src/main/res/layout/fragment_note_edit.xml
@@ -33,6 +33,7 @@
android:ems="10"
android:gravity="top"
android:inputType="textMultiLine|textCapSentences"
+ android:lineSpacingMultiplier="@dimen/note_line_spacing"
android:padding="@dimen/spacer_2x"
android:paddingStart="@dimen/spacer_2x"
android:paddingEnd="@dimen/spacer_2x"
diff --git a/app/src/main/res/layout/fragment_note_preview.xml b/app/src/main/res/layout/fragment_note_preview.xml
index 475f9ede..be1a9f62 100644
--- a/app/src/main/res/layout/fragment_note_preview.xml
+++ b/app/src/main/res/layout/fragment_note_preview.xml
@@ -26,6 +26,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacer_activity_sides"
android:layout_marginEnd="@dimen/spacer_activity_sides"
+ android:lineSpacingMultiplier="@dimen/note_line_spacing"
android:padding="@dimen/spacer_2x"
android:paddingStart="@dimen/spacer_2x"
android:paddingEnd="@dimen/spacer_2x"
diff --git a/app/src/main/res/layout/widget_single_note_content.xml b/app/src/main/res/layout/widget_single_note_content.xml
index 9ff51b60..ad5a3b3e 100644
--- a/app/src/main/res/layout/widget_single_note_content.xml
+++ b/app/src/main/res/layout/widget_single_note_content.xml
@@ -4,5 +4,6 @@
android:id="@+id/single_note_content_tv"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:lineSpacingMultiplier="@dimen/note_line_spacing"
android:textColor="@color/widget_foreground"
tools:text="@tools:sample/lorem/random" />
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index 08db34b0..17b56355 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -28,6 +28,8 @@
<dimen name="note_font_size_medium">18sp</dimen>
<dimen name="note_font_size_large">22sp</dimen>
+ <item format="float" name="note_line_spacing" type="dimen">1</item>
+
<!-- Widgets -->
<dimen name="widget_outer_radius">@dimen/spacer_1x</dimen>
<dimen name="widget_inner_radius">@dimen/spacer_1hx</dimen>