Home | History | Annotate | Download | only in layout-xlarge
      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 <!-- Fills the entire widget slot to allow position the visible widget inside. -->
     18 <FrameLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     >
     23 
     24 <!-- The visible widget. -->
     25 <FrameLayout
     26     android:layout_width="match_parent"
     27     android:layout_height="wrap_content"
     28     android:layout_alignParentTop="true"
     29     android:layout_alignParentLeft="true"
     30     android:layout_marginTop="1dip"
     31     android:layout_marginLeft="12dip"
     32     android:layout_marginRight="12dip"
     33     android:background="@drawable/bg_search_widget_holo"
     34     >
     35 
     36             <LinearLayout
     37                 android:id="@+id/search_plate"
     38                 android:layout_width="match_parent"
     39                 android:layout_height="62dip"
     40                 android:gravity="top|left"
     41                 android:orientation="horizontal"
     42                 android:clickable="true"
     43                 android:paddingTop="8dip"
     44                 android:paddingBottom="12dip"
     45                 android:paddingLeft="16dip"
     46                 android:paddingRight="16dip"
     47                 android:background="@drawable/bg_stripe_pattern_search_widget_holo"
     48                 >
     49 
     50                 <LinearLayout
     51                     android:id="@+id/search_edit_frame"
     52                     android:layout_width="0dip"
     53                     android:layout_height="match_parent"
     54                     android:layout_weight="1.0"
     55                     android:orientation="horizontal"
     56                     android:background="@drawable/textfield_search_widget_start_holo"
     57                     >
     58 
     59                     <ImageButton
     60                         android:id="@+id/search_widget_text"
     61                         android:layout_width="match_parent"
     62                         android:layout_height="match_parent"
     63                         android:paddingLeft="8dp"
     64                         android:paddingBottom="2dip"
     65                         android:scaleType="fitXY"
     66                         android:src="@drawable/ic_google_logo_search_widget"
     67                         android:background="@drawable/highlight_search_widget"
     68                     />
     69 
     70                 </LinearLayout>
     71 
     72                 <LinearLayout
     73                     android:layout_width="wrap_content"
     74                     android:layout_height="match_parent"
     75                     android:orientation="horizontal"
     76                     android:background="@drawable/textfield_search_widget_end_holo"
     77                     >
     78                     <ImageButton
     79                             android:id="@+id/search_widget_voice_btn"
     80                             android:layout_width="wrap_content"
     81                             android:layout_height="match_parent"
     82                             android:paddingLeft="24dip"
     83                             android:paddingRight="24dip"
     84                             android:paddingBottom="2dip"
     85                             android:src="@drawable/ic_voice_search_widget_holo"
     86                             android:background="@drawable/highlight_search_widget"
     87                     />
     88                 </LinearLayout>
     89 
     90             </LinearLayout>
     91 
     92 </FrameLayout>
     93 </FrameLayout>
     94