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

fragment_note_edit.xml « layout « res « main « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61d9000af4826e54d790c81d99eb1068e4c0ba29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
    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"
        android:layout_height="match_parent"
        android:fillViewport="true"
        android:orientation="vertical"
        tools:context="it.niedermann.owncloud.notes.edit.EditNoteActivity">

        <it.niedermann.android.markdown.MarkdownEditorImpl
            android:id="@+id/editContent"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/spacer_activity_sides"
            android:layout_marginEnd="@dimen/spacer_activity_sides"
            android:background="?attr/colorPrimary"
            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"
            android:textColor="@color/fg_default"
            android:theme="@style/textViewStyle"
            tools:text="@tools:sample/lorem/random" />
    </ScrollView>

    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/searchPrev"
        style="?attr/floatingActionButtonSmallSecondaryStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        android:contentDescription="@string/simple_prev"
        android:translationY="-56dp"
        android:visibility="gone"
        app:backgroundTint="@color/defaultBrand"
        app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp"
        tools:visibility="visible" />

    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/searchNext"
        style="?attr/floatingActionButtonSmallSecondaryStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        android:contentDescription="@string/simple_next"
        android:visibility="gone"
        app:backgroundTint="@color/defaultBrand"
        app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp"
        tools:visibility="visible" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>