forked from ankidroid/Anki-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote_editor_toolbar.xml
More file actions
119 lines (105 loc) · 5.19 KB
/
note_editor_toolbar.xml
File metadata and controls
119 lines (105 loc) · 5.19 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
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2020 David Allison <davidallisongithub@gmail.com>
~
~ This program is free software; you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by the Free Software
~ Foundation; either version 3 of the License, or (at your option) any later
~ version.
~
~ This program is distributed in the hope that it will be useful, but WITHOUT ANY
~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
~ PARTICULAR PURPOSE. See the GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License along with
~ this program. If not, see <http://www.gnu.org/licenses/>.
-->
<HorizontalScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar_scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbarStyle="insideOverlay"
android:scrollbars="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/toolbar_layout"
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
app:contentInsetEnd="0dp"
app:contentInsetRight="0dp"
android:layout_gravity="center_horizontal"
android:background="?android:attr/selectableItemBackground"
android:orientation="vertical">
<LinearLayout
android:id="@+id/editor_toolbar_internal"
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
app:contentInsetEnd="0dp"
app:contentInsetRight="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="?android:attr/selectableItemBackground"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_bold"
app:srcCompat="@drawable/ic_format_bold_black_24dp"
android:contentDescription="@string/format_insert_bold"
android:tooltipText="@string/format_insert_bold"
android:tag="b"
style="@style/note_editor_toolbar_button" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_italic"
app:srcCompat="@drawable/ic_format_italic_black_24dp"
android:contentDescription="@string/format_insert_italic"
android:tooltipText="@string/format_insert_italic"
android:tag="i"
style="@style/note_editor_toolbar_button" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_underline"
app:srcCompat="@drawable/ic_format_underlined_black_24dp"
android:contentDescription="@string/format_insert_underline"
android:tooltipText="@string/format_insert_underline"
android:tag="u"
style="@style/note_editor_toolbar_button" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_undo"
app:srcCompat="@drawable/ic_undo_black_24dp"
android:contentDescription="@string/undo_text_change"
android:tooltipText="@string/undo_text_change"
android:tag="g"
style="@style/note_editor_toolbar_button" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_horizontal_rule"
app:srcCompat="@drawable/ic_horizontal_rule_black_24dp"
android:contentDescription="@string/insert_horizontal_line"
android:tooltipText="@string/insert_horizontal_line"
android:tag="r"
style="@style/note_editor_toolbar_button" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_title"
app:srcCompat="@drawable/ic_format_title_black_24dp"
android:contentDescription="@string/insert_heading"
android:tooltipText="@string/insert_heading"
android:tag="h"
style="@style/note_editor_toolbar_button" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_font_size"
android:contentDescription="@string/format_font_size"
android:tooltipText="@string/format_font_size"
app:srcCompat="@drawable/ic_format_font_size_24dp"
android:tag="f"
style="@style/note_editor_toolbar_button" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/note_editor_toolbar_button_insert_mathjax"
android:contentDescription="@string/insert_mathjax"
android:tooltipText="@string/insert_mathjax"
app:srcCompat="@drawable/ic_add_equation_black_24dp"
android:tag="m"
style="@style/note_editor_toolbar_button" />
</LinearLayout>
</LinearLayout>
</HorizontalScrollView>