aboutsummaryrefslogtreecommitdiff
path: root/libs/editor/WordPressEditor/src/main/res/layout-w360dp/format_bar.xml
blob: fc2eb283e5f0e5fd97579362bb17262ebdaaaf8a (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
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="@dimen/format_bar_height"
    android:layout_gravity="bottom"
    android:background="@color/format_bar_background"
    android:layout_alignParentBottom="true"
    android:orientation="vertical">

    <View
        android:id="@+id/format_bar_horizontal_divider"
        android:layout_width="fill_parent"
        android:layout_height="@dimen/format_bar_horizontal_divider_height"
        style="@style/Divider"/>

    <LinearLayout
        android:id="@+id/format_bar_buttons"
        android:layout_width="fill_parent"
        android:layout_height="@dimen/format_bar_height"
        android:layout_gravity="bottom"
        android:layout_marginRight="@dimen/format_bar_right_margin"
        android:orientation="horizontal"
        tools:ignore="RtlHardcoded">

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_marginLeft="@dimen/format_bar_left_margin"
            android:orientation="horizontal"
            tools:ignore="RtlHardcoded">

            <org.wordpress.android.editor.RippleToggleButton
                android:id="@+id/format_bar_button_media"
                style="@style/FormatBarButton"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:contentDescription="@string/format_bar_description_media"
                android:background="@drawable/format_bar_button_media_selector"/>

            <org.wordpress.android.editor.RippleToggleButton
                android:id="@+id/format_bar_button_bold"
                style="@style/FormatBarButton"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:contentDescription="@string/format_bar_description_bold"
                android:background="@drawable/format_bar_button_bold_selector"
                android:tag="@string/format_bar_tag_bold"/>

            <org.wordpress.android.editor.RippleToggleButton
                android:id="@+id/format_bar_button_italic"
                style="@style/FormatBarButton"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:contentDescription="@string/format_bar_description_italic"
                android:background="@drawable/format_bar_button_italic_selector"
                android:tag="@string/format_bar_tag_italic"/>

            <org.wordpress.android.editor.RippleToggleButton
                android:id="@+id/format_bar_button_quote"
                style="@style/FormatBarButton"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:contentDescription="@string/format_bar_description_quote"
                android:background="@drawable/format_bar_button_quote_selector"
                android:tag="@string/format_bar_tag_blockquote"/>

            <org.wordpress.android.editor.RippleToggleButton
                android:id="@+id/format_bar_button_ul"
                style="@style/FormatBarButton"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:contentDescription="@string/format_bar_description_ul"
                android:background="@drawable/format_bar_button_ul_selector"
                android:tag="@string/format_bar_tag_unorderedList"/>

            <org.wordpress.android.editor.RippleToggleButton
                android:id="@+id/format_bar_button_ol"
                style="@style/FormatBarButton"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:contentDescription="@string/format_bar_description_ol"
                android:background="@drawable/format_bar_button_ol_selector"
                android:tag="@string/format_bar_tag_orderedList"/>

            <org.wordpress.android.editor.RippleToggleButton
                android:id="@+id/format_bar_button_link"
                style="@style/FormatBarButton"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:contentDescription="@string/format_bar_description_link"
                android:background="@drawable/format_bar_button_link_selector"
                android:tag="@string/format_bar_tag_link"/>
        </LinearLayout>

        <View
            android:id="@+id/format_bar_vertical_divider"
            android:layout_width="@dimen/format_bar_vertical_divider_width"
            android:layout_height="@dimen/format_bar_vertical_divider_height"
            android:layout_gravity="center"
            style="@style/Divider"/>

        <org.wordpress.android.editor.RippleToggleButton
            android:id="@+id/format_bar_button_html"
            style="@style/FormatBarHtmlButton"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:contentDescription="@string/format_bar_description_html"
            android:background="@drawable/format_bar_button_html_selector"/>
    </LinearLayout>
</LinearLayout>