summaryrefslogtreecommitdiffstats
path: root/mobile/android/android-components/components/browser/toolbar2/src/main/res/layout/mozac_browser_toolbar_displaytoolbar.xml
blob: 5a5f779a70fe06568dfeb7c9e17fcd01f3c9eeb8 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<mozilla.components.browser.toolbar2.display.DisplayToolbarView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:mozac="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="56dp"
    android:orientation="vertical">

    <!-- Navigation -->

    <mozilla.components.browser.toolbar2.internal.ActionContainer
        android:id="@+id/mozac_browser_toolbar_navigation_actions"
        android:layout_width="wrap_content"
        android:layout_height="48dp"
        android:layout_marginTop="4dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        mozac:actionContainerItemSize="48dp"
        tools:layout_width="48dp" />

    <!-- URL container -->

    <ImageView
        android:id="@+id/mozac_browser_toolbar_background"
        android:layout_width="0dp"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:layout_marginEnd="8dp"
        android:importantForAccessibility="no"
        app:layout_constraintEnd_toStartOf="@+id/mozac_browser_toolbar_browser_actions"
        app:layout_constraintStart_toEndOf="@+id/mozac_browser_toolbar_navigation_actions"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_goneMarginEnd="0dp" />

    <!-- URL indicators (lock, tracking protection, ..) -->

    <ImageView
        android:id="@+id/mozac_browser_toolbar_empty_indicator"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:scaleType="center"
        android:visibility="gone"
        app:layout_constraintStart_toStartOf="@id/mozac_browser_toolbar_background"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/mozac_ic_search_24"
        tools:ignore="ContentDescription" />

    <mozilla.components.browser.toolbar2.display.TrackingProtectionIconView
        android:id="@+id/mozac_browser_toolbar_tracking_protection_indicator"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:scaleType="center"
        android:visibility="gone"
        app:layout_constraintStart_toEndOf="@id/mozac_browser_toolbar_empty_indicator"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/mozac_ic_tracking_protection_on_no_trackers_blocked" />

    <ImageView
        android:id="@+id/mozac_browser_toolbar_separator"
        android:layout_width="@dimen/mozac_browser_toolbar_icons_separator_width"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:importantForAccessibility="no"
        android:scaleType="center"
        android:visibility="gone"
        app:layout_constraintStart_toEndOf="@+id/mozac_browser_toolbar_tracking_protection_indicator"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/mozac_browser_toolbar_icons_vertical_separator" />

    <mozilla.components.browser.toolbar2.display.SiteSecurityIconView
        android:id="@+id/mozac_browser_toolbar_security_indicator"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:contentDescription="@string/mozac_browser_toolbar_content_description_site_info"
        android:scaleType="center"
        app:layout_constraintStart_toEndOf="@+id/mozac_browser_toolbar_separator"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/mozac_ic_site_security" />

    <mozilla.components.browser.toolbar2.display.HighlightView
        android:id="@+id/mozac_browser_toolbar_permission_indicator"
        android:layout_width="10dp"
        android:layout_height="10dp"
        android:importantForAccessibility="no"
        app:layout_constraintBottom_toBottomOf="@+id/mozac_browser_toolbar_security_indicator"
        app:layout_constraintEnd_toEndOf="@+id/mozac_browser_toolbar_security_indicator"
        android:layout_marginEnd="8dp"
        android:layout_marginBottom="8dp"
        android:visibility="gone"
        android:tint="@color/photonBlue40"
        app:srcCompat="@drawable/mozac_dot_notification" />

    <!-- URL & Title -->

    <mozilla.components.browser.toolbar2.display.OriginView
        android:id="@+id/mozac_browser_toolbar_origin_view"
        android:layout_width="0dp"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:paddingEnd="@dimen/mozac_browser_toolbar_origin_padding_end"
        app:layout_constraintEnd_toStartOf="@+id/mozac_browser_toolbar_action_separator"
        app:layout_constraintStart_toEndOf="@+id/mozac_browser_toolbar_security_indicator"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_goneMarginStart="8dp"
        app:layout_goneMarginTop="8dp" />

    <View
        android:id="@+id/mozac_browser_toolbar_action_separator"
        android:layout_width="@dimen/mozac_browser_toolbar_page_action_separator_width"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:layout_marginStart="8dp"
        android:visibility="gone"
        android:importantForAccessibility="no"
        android:scaleType="center"
        app:layout_constraintStart_toEndOf="@+id/mozac_browser_toolbar_origin_view"
        app:layout_constraintEnd_toStartOf="@id/mozac_browser_toolbar_page_actions"
        app:layout_constraintTop_toTopOf="parent" />

    <!-- Page actions -->

    <mozilla.components.browser.toolbar2.internal.ActionContainer
        android:id="@+id/mozac_browser_toolbar_page_actions"
        android:layout_width="wrap_content"
        android:layout_height="48dp"
        android:layout_marginTop="4dp"
        android:scaleType="center"
        app:layout_constraintEnd_toEndOf="@+id/mozac_browser_toolbar_background"
        app:layout_constraintTop_toTopOf="parent"
        mozac:actionContainerItemSize="48dp"
        tools:layout_width="48dp" />

    <!-- Browser Actions -->

    <mozilla.components.browser.toolbar2.internal.ActionContainer
        android:id="@+id/mozac_browser_toolbar_browser_actions"
        android:layout_width="wrap_content"
        android:layout_height="48dp"
        android:layout_marginTop="4dp"
        app:layout_constraintEnd_toStartOf="@id/mozac_browser_toolbar_menu"
        app:layout_constraintTop_toTopOf="parent"
        mozac:actionContainerItemSize="48dp"
        tools:layout_width="48dp" />

    <!-- Menu -->

    <mozilla.components.browser.menu.view.MenuButton
        android:id="@+id/mozac_browser_toolbar_menu"
        android:layout_width="36dp"
        android:layout_height="48dp"
        android:layout_marginTop="4dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <!-- Progress Bar -->

    <ProgressBar
        android:id="@+id/mozac_browser_toolbar_progress"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="0dp"
        android:layout_height="@dimen/mozac_browser_toolbar_progress_bar_height"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

</mozilla.components.browser.toolbar2.display.DisplayToolbarView>