blob: 575dadfe549d1cea930f20070513bbba918e443f [file]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<!-- NOTES ON SPEC IMPLEMENTATION:
+................................................................+
48dp | STRING TO SHOW MIC |
+................................................................+
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:alpha="0.9"
android:background="@drawable/card_single"
android:gravity="center_vertical"
android:orientation="horizontal" >
<!-- The 12dp padding on the left comes from the fact that the microphone is 24dp x 24dp,
and sits in a 48dp x 48dp box. This means there's an implied 12dp of padding
around the entire microphone. -->
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:paddingStart="12dp"
android:gravity="center_vertical"
android:singleLine="true"
android:textAlignment="viewStart"
android:text="@string/search_widget_default"
android:textColor="@color/google_grey_600"
android:textSize="17sp" />
<ImageView
android:id="@+id/microphone_icon"
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/btn_mic"
android:tint="@color/light_normal_color"
android:scaleType="centerInside"
android:contentDescription="@string/accessibility_toolbar_btn_mic" />
</LinearLayout>