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