[fenix] For https://github.com/mozilla-mobile/fenix/issues/24252 - Rename primaryText...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / search_engine_radio_button.xml
blob612404250e286b55a2ecd9f45184dd9732e96087
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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     xmlns:tools="http://schemas.android.com/tools"
8     android:layout_height="@dimen/search_engine_radio_button_height"
9     android:layout_width="match_parent"
10     android:minHeight="@dimen/radio_button_preference_height"
11     android:background="?android:selectableItemBackground"
12     android:clickable="true"
13     android:labelFor="@+id/radio_button"
14     android:focusable="true">
15     <RadioButton
16         android:id="@+id/radio_button"
17         android:layout_width="@dimen/search_engine_radio_button_height"
18         android:layout_height="@dimen/search_engine_radio_button_height"
19         android:textAppearance="?android:attr/textAppearanceListItem"
20         android:layout_marginStart="@dimen/search_bar_search_engine_icon_padding"
21         android:layout_gravity="center" />
22     <ImageView
23         android:id="@+id/engine_icon"
24         android:importantForAccessibility="no"
25         android:layout_width="@dimen/search_engine_engine_icon_height"
26         android:layout_height="@dimen/search_engine_engine_icon_height"
27         android:layout_marginStart="@dimen/search_engine_engine_icon_margin"
28         android:layout_gravity="center" />
29     <TextView
30         android:id="@+id/engine_text"
31         android:textColor="?attr/textPrimary"
32         android:layout_width="0dp"
33         android:layout_height="wrap_content"
34         android:layout_marginStart="@dimen/radio_button_padding_horizontal"
35         android:layout_marginEnd="@dimen/radio_button_padding_horizontal"
36         android:textSize="16sp"
37         tools:text="Google"
38         android:layout_weight="1"
39         android:layout_gravity="center" />
40     <ImageButton
41         android:id="@+id/overflow_menu"
42         android:layout_width="@dimen/glyph_button_width"
43         android:layout_height="@dimen/glyph_button_height"
44         android:background="?android:attr/selectableItemBackgroundBorderless"
45         android:contentDescription="@string/content_description_menu"
46         app:srcCompat="@drawable/ic_menu" />
47 </LinearLayout>