Home | History | Annotate | Download | only in layout-port
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <RelativeLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
     19     style="@style/SearchDropTargetBar"
     20     android:layout_width="match_parent"
     21     android:layout_height="@dimen/search_bar_height"
     22     android:layout_gravity="bottom|center_horizontal"
     23     android:background="@drawable/search_frame">
     24    <!-- Global search icon -->
     25    <com.android.launcher2.HolographicLinearLayout
     26         style="@style/SearchButton"
     27         launcher:sourceImageViewId="@+id/search_button"
     28         android:id="@+id/search_button_container"
     29         android:layout_width="match_parent"
     30         android:layout_height="match_parent"
     31         android:layout_gravity="center_vertical"
     32         android:layout_alignParentStart="true"
     33         android:layout_alignParentTop="true"
     34         android:layout_toStartOf="@+id/voice_button_container"
     35         android:paddingStart="8dp"
     36         android:onClick="onClickSearchButton"
     37         android:focusable="true"
     38         android:clickable="true"
     39         android:contentDescription="@string/accessibility_search_button">
     40        <ImageView
     41             android:id="@+id/search_button"
     42             android:layout_width="wrap_content"
     43             android:layout_height="match_parent"
     44             android:scaleType="fitStart"
     45             android:src="@drawable/ic_home_search_normal_holo"
     46             android:adjustViewBounds="true" />
     47     </com.android.launcher2.HolographicLinearLayout>
     48 
     49     <!-- Voice search icon -->
     50     <com.android.launcher2.HolographicLinearLayout
     51         style="@style/SearchButton"
     52         launcher:sourceImageViewId="@+id/voice_button"
     53         android:id="@+id/voice_button_container"
     54         android:layout_width="@dimen/search_bar_height"
     55         android:layout_height="match_parent"
     56         android:layout_gravity="center_vertical"
     57         android:layout_alignParentEnd="true"
     58         android:layout_alignParentTop="true"
     59         android:paddingEnd="8dp"
     60         android:gravity="end"
     61         android:onClick="onClickVoiceButton"
     62         android:focusable="true"
     63         android:clickable="true"
     64         android:contentDescription="@string/accessibility_voice_search_button">
     65         <ImageView
     66             android:id="@+id/voice_button"
     67             android:layout_width="wrap_content"
     68             android:layout_height="match_parent"
     69             android:scaleType="fitEnd"
     70             android:src="@drawable/ic_home_voice_search_holo"
     71             android:adjustViewBounds="true" />
     72     </com.android.launcher2.HolographicLinearLayout>
     73 </RelativeLayout>
     74