Bug 1813418 - Normalize search widget previews and microphone icon
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / search_widget_large.xml
blobbb4a588ea0b94f811b4da0bcdc88411bae43d9d7
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3    - License, v. 2.0. If a copy of the MPL was not distributed with this
4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:tools="http://schemas.android.com/tools"
7     android:layout_width="match_parent"
8     android:layout_height="50dp"
9     android:layout_gravity="center"
10     android:background="@drawable/rounded_search_widget_background">
12     <ImageView
13         android:id="@+id/button_search_widget_new_tab_icon"
14         android:layout_width="50dp"
15         android:layout_height="50dp"
16         android:layout_alignParentStart="true"
17         android:contentDescription="@string/search_widget_content_description_2"
18         android:scaleType="centerInside" />
20     <TextView
21         android:id="@+id/button_search_widget_new_tab"
22         android:layout_width="match_parent"
23         android:layout_height="match_parent"
24         android:layout_alignEnd="@id/button_search_widget_voice"
25         android:layout_marginStart="9dp"
26         android:layout_toEndOf="@id/button_search_widget_new_tab_icon"
27         android:gravity="start|center_vertical"
28         android:letterSpacing="-0.025"
29         android:textAlignment="viewStart"
30         android:textColor="@color/fx_mobile_text_color_primary"
31         android:textSize="15sp"
32         tools:text="Search the web" />
34     <ImageButton
35         android:id="@+id/button_search_widget_voice"
36         android:layout_width="48dp"
37         android:layout_height="48dp"
38         android:layout_alignParentEnd="true"
39         android:layout_centerVertical="true"
40         android:layout_marginEnd="1dp"
41         android:background="@android:color/transparent"
42         android:contentDescription="@string/search_widget_voice"
43         android:scaleType="centerInside"
44         android:src="@drawable/mozac_ic_microphone"
45         android:tint="@color/fx_mobile_icon_color_primary"
46         tools:ignore="AndroidSrcXmlDetector,UseAppTint" />
47 </RelativeLayout>