Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <view class="com.android.dialer.widget.SearchEditTextLayout"
      3     xmlns:android="http://schemas.android.com/apk/res/android"
      4     android:layout_width="match_parent"
      5     android:layout_height="match_parent"
      6     android:id="@+id/search_view_container"
      7     android:orientation="horizontal"
      8     android:layout_marginTop="@dimen/search_top_margin"
      9     android:layout_marginBottom="@dimen/search_bottom_margin"
     10     android:layout_marginLeft="@dimen/search_margin_horizontal"
     11     android:layout_marginRight="@dimen/search_margin_horizontal"
     12     android:background="@drawable/rounded_corner"
     13     android:elevation="@dimen/search_box_elevation">
     14 
     15     <LinearLayout
     16         android:id="@+id/search_box_collapsed"
     17         android:layout_width="match_parent"
     18         android:layout_height="match_parent"
     19         android:paddingStart="@dimen/search_box_left_padding"
     20         android:paddingEnd="@dimen/search_box_right_padding"
     21         android:gravity="center_vertical"
     22         android:orientation="horizontal">
     23 
     24         <ImageView
     25             android:id="@+id/search_magnifying_glass"
     26             android:layout_height="@dimen/search_box_icon_size"
     27             android:layout_width="@dimen/search_box_icon_size"
     28             android:layout_margin="@dimen/search_box_icon_margin"
     29             android:padding="@dimen/search_box_search_icon_padding"
     30             android:src="@drawable/ic_ab_search"
     31             android:importantForAccessibility="no"
     32             android:tint="@color/searchbox_icon_tint" />
     33 
     34         <TextView
     35             android:id="@+id/search_box_start_search"
     36             android:layout_height="wrap_content"
     37             android:layout_width="0dp"
     38             android:layout_weight="1"
     39             android:layout_marginLeft="@dimen/search_box_collapsed_text_margin_left"
     40             android:textSize="@dimen/search_collapsed_text_size"
     41             android:fontFamily="@string/search_font_family"
     42             android:textColorHint="@color/searchbox_hint_text_color"
     43             android:gravity="center_vertical"
     44             android:hint="@string/dialer_hint_find_contact" />
     45 
     46         <ImageView
     47             android:id="@+id/voice_search_button"
     48             android:layout_height="@dimen/search_box_icon_size"
     49             android:layout_width="@dimen/search_box_icon_size"
     50             android:layout_margin="@dimen/search_box_icon_margin"
     51             android:src="@drawable/ic_voice_search"
     52             android:clickable="true"
     53             android:contentDescription="@string/description_start_voice_search"
     54             android:background="?android:attr/selectableItemBackgroundBorderless"
     55             android:tint="@color/searchbox_icon_tint" />
     56 
     57         <ImageButton
     58             android:id="@+id/dialtacts_options_menu_button"
     59             android:layout_width="@dimen/search_box_icon_size"
     60             android:layout_height="@dimen/search_box_icon_size"
     61             android:layout_margin="@dimen/search_box_icon_margin"
     62             android:background="?android:attr/selectableItemBackgroundBorderless"
     63             android:src="@drawable/ic_overflow_menu"
     64             android:contentDescription="@string/action_menu_overflow_description"
     65             android:tint="@color/searchbox_icon_tint" />
     66 
     67     </LinearLayout>
     68 
     69     <include layout="@layout/search_bar_expanded" />
     70 
     71 </view>
     72