Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 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 
     17 <com.android.quicksearchbox.ui.SearchActivityViewSinglePane
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:id="@+id/search_activity_view"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:background="#FFFFFFFF"
     23 >
     24 
     25     <view
     26         class="com.android.quicksearchbox.ui.SuggestionsView"
     27         android:id="@+id/suggestions"
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         android:layout_alignParentLeft="true"
     31         android:layout_alignParentRight="true"
     32         android:layout_below="@+id/search_edit_frame"
     33         android:layout_alignParentBottom="true"
     34         android:scrollbars="none"
     35         >
     36     </view>
     37 
     38     <!-- The search plate is after the suggestions, to give it a higher
     39          z-index. -->
     40     <LinearLayout
     41         android:id="@+id/search_edit_frame"
     42         android:layout_width="match_parent"
     43         android:layout_height="wrap_content"
     44         android:layout_marginBottom="-10dip"
     45         android:paddingRight="4dip"
     46         android:orientation="horizontal"
     47         android:gravity="center_vertical"
     48         android:background="@drawable/search_plate_global"
     49         android:layout_alignParentLeft="true"
     50         android:layout_alignParentTop="true"
     51         android:layout_alignParentRight="true"
     52         >
     53 
     54         <com.android.quicksearchbox.ui.QueryTextView
     55             android:id="@+id/search_src_text"
     56             android:layout_width="0dip"
     57             android:layout_height="wrap_content"
     58             android:layout_weight="1.0"
     59             android:layout_marginTop="6dip"
     60             android:layout_marginBottom="6dip"
     61             android:paddingLeft="10dip"
     62             android:paddingRight="10dip"
     63             android:paddingTop="5dip"
     64             android:paddingBottom="5dip"
     65             android:gravity="center_vertical|left"
     66             android:singleLine="true"
     67             android:ellipsize="end"
     68             android:inputType="text|textAutoComplete"
     69             android:background="@drawable/textfield_search_empty_google"
     70             android:textSize="18sp"
     71             android:textStyle="normal"
     72             android:textColor="@android:color/primary_text_light"
     73             android:textColorHint="@color/search_hint"
     74             android:imeOptions="actionGo"
     75         />
     76 
     77         <ImageButton 
     78             android:id="@+id/search_go_btn"
     79             android:background="@drawable/btn_search_dialog"
     80             android:src="@drawable/ic_btn_search"
     81             android:layout_width="wrap_content"
     82             android:layout_height="match_parent"
     83             android:layout_marginTop="6dip"
     84             android:layout_marginBottom="6dip"
     85             android:visibility="gone"
     86         />
     87 
     88         <ImageButton
     89             android:id="@+id/search_voice_btn"
     90             android:layout_width="wrap_content"
     91             android:layout_height="match_parent"
     92             android:background="@drawable/btn_search_dialog_voice"
     93             android:src="@drawable/ic_btn_speak_now"
     94             android:layout_marginRight="-4dip"
     95         />
     96     </LinearLayout>
     97 
     98 </com.android.quicksearchbox.ui.SearchActivityViewSinglePane>
     99