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>2020-06-08 23:01:56 +0300
committerStefan Niedermann <info@niedermann.it>2020-06-08 23:01:56 +0300
commit474d9c3a8a106a3bd3338410da1ec79d74897a82 (patch)
treeaf4c2c4e1836b48f01ae74199b65651378a07eb6 /app/src/main/res/layout
parentaeda3b84f5a705b35896ca157fd86537def89111 (diff)
parent2e2bbb9be5cb56f9d12ddea3a464edab5976c560 (diff)
Merge branch 'master' into api-v1
# Conflicts: # app/src/androidTest/java/it/niedermann/owncloud/notes/persistence/NotesDatabaseTest.java # app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NoteEditFragment.java # app/src/main/java/it/niedermann/owncloud/notes/persistence/AbstractNotesDatabase.java # app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesDatabase.java # app/src/main/java/it/niedermann/owncloud/notes/util/NoteUtil.java
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_formatting_help.xml43
-rw-r--r--app/src/main/res/layout/fragment_note_edit.xml9
2 files changed, 52 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_formatting_help.xml b/app/src/main/res/layout/activity_formatting_help.xml
new file mode 100644
index 00000000..69c6838d
--- /dev/null
+++ b/app/src/main/res/layout/activity_formatting_help.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ 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:background="@color/primary"
+ android:orientation="vertical">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ android:background="?attr/colorPrimary"
+ app:contentInsetStartWithNavigation="0dp"
+ app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp"
+ app:title="@string/action_formatting_help"
+ app:titleMarginStart="0dp" />
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <ScrollView
+ android:id="@+id/scrollView"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ tools:context="it.niedermann.owncloud.notes.android.activity.EditNoteActivity">
+
+ <com.yydcdut.markdown.MarkdownTextView
+ android:id="@+id/content"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="@dimen/spacer_2x"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="@color/fg_default"
+ android:textIsSelectable="true"
+ android:theme="@style/textViewStyle"
+ tools:text="@tools:sample/lorem/random" />
+ </ScrollView>
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_note_edit.xml b/app/src/main/res/layout/fragment_note_edit.xml
index 64f83e5e..a6ea2fde 100644
--- a/app/src/main/res/layout/fragment_note_edit.xml
+++ b/app/src/main/res/layout/fragment_note_edit.xml
@@ -6,6 +6,15 @@
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"
android:layout_width="match_parent"