Skip to content

Commit e48655d

Browse files
committed
Added task list as a potential button that you can add to toolbar.
1 parent c7bd4da commit e48655d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/toolbar/ToolbarAction.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ enum class ToolbarAction constructor(
5555
ToolbarActionType.BLOCK_STYLE,
5656
setOf(AztecTextFormat.FORMAT_ORDERED_LIST),
5757
R.layout.format_bar_button_list_ordered),
58+
TASK_LIST(
59+
R.id.format_bar_button_list_task,
60+
R.drawable.format_bar_button_tasklist_selector,
61+
ToolbarActionType.BLOCK_STYLE,
62+
setOf(AztecTextFormat.FORMAT_TASK_LIST),
63+
R.layout.format_bar_button_list_task),
5864
INDENT(
5965
R.id.format_bar_button_indent,
6066
R.drawable.format_bar_button_indent_selector,
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<org.wordpress.aztec.toolbar.RippleToggleButton xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:id="@+id/format_bar_button_list_task"
4+
style="@style/FormatBarButton"
5+
android:layout_width="wrap_content"
6+
android:layout_height="fill_parent"
7+
android:contentDescription="@string/item_format_task_list" />

0 commit comments

Comments
 (0)