summaryrefslogtreecommitdiffstats
path: root/mobile/android/android-components/components/browser/toolbar2/src/main/res/layout/mozac_browser_toolbar_edittoolbar.xml
blob: 3325cd099ff5a63b014d512b25775a49b41be780 (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
<?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/. -->
<androidx.constraintlayout.widget.ConstraintLayout
    android:id="@+id/mozac_browser_toolbar_container"
    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:orientation="vertical"
    android:layout_height="56dp">

    <ImageView
        android:id="@+id/mozac_browser_toolbar_background"
        android:layout_width="0dp"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        android:layout_marginStart="8dp"
        android:layout_marginEnd="8dp"
        android:importantForAccessibility="no"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

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

    <mozilla.components.browser.toolbar2.internal.ActionContainer
        android:id="@+id/mozac_browser_toolbar_edit_actions_start"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:layout_marginTop="8dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toEndOf="@id/mozac_browser_toolbar_edit_icon"
        mozac:actionContainerItemSize="56dp"
        tools:layout_width="56dp" />

    <mozilla.components.ui.autocomplete.InlineAutocompleteEditText
        android:id="@+id/mozac_browser_toolbar_edit_url_view"
        android:layout_width="0dp"
        android:layout_marginTop="8dp"
        android:layout_height="40dp"
        android:width="100dp"
        android:height="100dp"
        android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
        android:inputType="textUri|text"
        android:lines="1"
        android:gravity="center_vertical"
        android:background="#00000000"
        android:textSize="15sp"
        app:layout_goneMarginStart="8dp"
        app:layout_constraintStart_toEndOf="@id/mozac_browser_toolbar_edit_actions_start"
        app:layout_constraintEnd_toStartOf="@id/mozac_browser_toolbar_erase_view"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageView
        android:id="@+id/mozac_browser_toolbar_erase_view"
        android:layout_width="44dp"
        android:layout_height="44dp"
        android:contentDescription="@string/mozac_clear_button_description"
        android:scaleType="center"
        app:srcCompat="@drawable/mozac_ic_cross_circle_fill_20"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toEndOf="@+id/mozac_browser_toolbar_edit_url_view"
        app:layout_constraintEnd_toStartOf="@id/mozac_browser_action_separator"
        app:layout_constraintTop_toTopOf="parent" />

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

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

    <ImageView
        android:id="@+id/mozac_browser_toolbar_clear_view"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:width="100dp"
        android:height="100dp"
        android:contentDescription="@string/mozac_clear_button_description"
        android:scaleType="center"
        app:srcCompat="@drawable/mozac_ic_cross_circle_fill_24"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="@+id/mozac_browser_toolbar_background"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>