summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/src/main/res/layout/search_widget_large.xml
blob: 8c003ab2f3885e71ab02bd23d4710289ed798bca (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
<?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/. -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:layout_gravity="center"
    android:background="@drawable/rounded_search_widget_background">

    <ImageView
        android:id="@+id/button_search_widget_new_tab_icon"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_alignParentStart="true"
        android:contentDescription="@string/search_widget_content_description_2"
        android:scaleType="centerInside" />

    <TextView
        android:id="@+id/button_search_widget_new_tab"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignEnd="@id/button_search_widget_voice"
        android:layout_marginStart="9dp"
        android:layout_toEndOf="@id/button_search_widget_new_tab_icon"
        android:gravity="start|center_vertical"
        android:letterSpacing="-0.025"
        android:textAlignment="viewStart"
        android:textColor="@color/fx_mobile_text_color_primary"
        android:textSize="15sp"
        tools:text="Search the web" />

    <ImageButton
        android:id="@+id/button_search_widget_voice"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_alignParentEnd="true"
        android:layout_centerVertical="true"
        android:layout_marginEnd="1dp"
        android:background="@android:color/transparent"
        android:contentDescription="@string/search_widget_voice"
        android:scaleType="centerInside"
        android:src="@drawable/mozac_ic_microphone_24"
        android:tint="@color/fx_mobile_icon_color_primary"
        tools:ignore="AndroidSrcXmlDetector,UseAppTint" />
</RelativeLayout>