forked from ankidroid/Anki-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote_editor.xml
More file actions
128 lines (118 loc) · 5.92 KB
/
note_editor.xml
File metadata and controls
128 lines (118 loc) · 5.92 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?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:id="@+id/root_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="false">
<LinearLayout
android:id="@+id/note_editor_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginBottom="@dimen/note_editor_toolbar_height">
<include layout="@layout/toolbar" />
<ScrollView
android:id="@+id/CardEditorScroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:padding="5dp" >
<LinearLayout
android:id="@+id/CardEditorLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<!-- Note type selector -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<com.ichi2.ui.FixedTextView
android:id="@+id/CardEditorModelText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="8dip"
android:layout_marginRight="8dip"
android:clickable="false"
android:gravity="start|center_vertical"
android:textStyle="bold"
android:text="@string/CardEditorModel" />
<Spinner
android:id="@+id/note_type_spinner"
android:layout_width="match_parent"
android:layout_height="@dimen/touch_target"
/>
</LinearLayout>
<!-- Deck selector -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<com.ichi2.ui.FixedTextView
android:id="@+id/CardEditorDeckText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="8dip"
android:layout_marginRight="8dip"
android:clickable="false"
android:gravity="start|center_vertical"
android:textStyle="bold"
android:text="@string/CardEditorNoteDeck" />
<Spinner
android:id="@+id/note_deck_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:popupTheme="@style/ActionBar.Popup"/>
</LinearLayout>
<!-- Front/Back/Attach views added in NoteEditor.populateEditFields(..) -->
<LinearLayout
android:id="@+id/CardEditorEditFieldsLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:focusable="true"
android:animateLayoutChanges="true"
android:paddingVertical="@dimen/keyline_1"
android:paddingHorizontal="6dip" />
<Button
android:id="@+id/ImageOcclusionButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="Select Image" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/CardEditorTagButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="Tags: AnkiDroid"
android:gravity="start|center_vertical"
android:paddingStart="15dip"
android:paddingEnd="15dip"
android:elevation="50dip"
android:layout_marginBottom="5dp"
android:background="@drawable/button_background"/>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/CardEditorCardsButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="Cards: Card 1"
android:gravity="start|center_vertical"
android:paddingStart="15dip"
android:paddingEnd="15dip"
android:elevation="50dip"
android:layout_marginBottom="5dp"
android:background="@drawable/button_background"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
<com.ichi2.anki.noteeditor.Toolbar
android:layout_gravity="bottom"
android:id="@+id/editor_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<include layout="@layout/anki_progress"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>