Yorke Lee | 53a2230 | 2014-04-29 18:13:46 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Andrew Lee | b190384 | 2014-05-15 16:11:24 -0700 | [diff] [blame] | 2 | <view class="com.android.dialer.widget.SearchEditTextLayout" |
Yorke Lee | 53a2230 | 2014-04-29 18:13:46 -0700 | [diff] [blame] | 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" |
Yorke Lee | ec489fb | 2014-05-19 15:39:27 -0700 | [diff] [blame] | 12 | android:background="@drawable/rounded_corner" |
Andrew Lee | 9da8fb4 | 2014-06-03 14:03:09 -0700 | [diff] [blame] | 13 | android:elevation="@dimen/search_box_elevation"> |
| 14 | |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 15 | <LinearLayout |
| 16 | android:id="@+id/search_box_collapsed" |
| 17 | android:layout_width="match_parent" |
| 18 | android:layout_height="match_parent" |
Andrew Lee | 9da8fb4 | 2014-06-03 14:03:09 -0700 | [diff] [blame] | 19 | android:paddingStart="@dimen/search_box_left_padding" |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 20 | android:gravity="center_vertical" |
Andrew Lee | 2e943ee | 2015-05-05 18:36:34 -0700 | [diff] [blame] | 21 | android:orientation="horizontal"> |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 22 | |
Andrew Lee | 9da8fb4 | 2014-06-03 14:03:09 -0700 | [diff] [blame] | 23 | <ImageView |
| 24 | android:id="@+id/search_magnifying_glass" |
| 25 | android:layout_height="@dimen/search_box_icon_size" |
| 26 | android:layout_width="@dimen/search_box_icon_size" |
Andrew Lee | 9da8fb4 | 2014-06-03 14:03:09 -0700 | [diff] [blame] | 27 | android:padding="@dimen/search_box_search_icon_padding" |
Yorke Lee | 8cda8b0 | 2015-09-16 12:40:00 -0700 | [diff] [blame] | 28 | android:scaleType="center" |
Andrew Lee | 9da8fb4 | 2014-06-03 14:03:09 -0700 | [diff] [blame] | 29 | android:src="@drawable/ic_ab_search" |
| 30 | android:importantForAccessibility="no" |
| 31 | android:tint="@color/searchbox_icon_tint" /> |
| 32 | |
Andrew Lee | 2e943ee | 2015-05-05 18:36:34 -0700 | [diff] [blame] | 33 | <TextView |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 34 | android:id="@+id/search_box_start_search" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:layout_width="0dp" |
| 37 | android:layout_weight="1" |
Andrew Lee | 2e943ee | 2015-05-05 18:36:34 -0700 | [diff] [blame] | 38 | android:layout_marginLeft="@dimen/search_box_collapsed_text_margin_left" |
| 39 | android:textSize="@dimen/search_collapsed_text_size" |
| 40 | android:fontFamily="@string/search_font_family" |
| 41 | android:textColorHint="@color/searchbox_hint_text_color" |
| 42 | android:gravity="center_vertical" |
| 43 | android:hint="@string/dialer_hint_find_contact" /> |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 44 | |
| 45 | <ImageView |
| 46 | android:id="@+id/voice_search_button" |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 47 | android:layout_width="@dimen/search_box_icon_size" |
Yorke Lee | 8cda8b0 | 2015-09-16 12:40:00 -0700 | [diff] [blame] | 48 | android:layout_height="match_parent" |
| 49 | android:src="@drawable/ic_mic_grey600" |
| 50 | android:scaleType="center" |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 51 | android:clickable="true" |
| 52 | android:contentDescription="@string/description_start_voice_search" |
Andrew Lee | 2e943ee | 2015-05-05 18:36:34 -0700 | [diff] [blame] | 53 | android:background="?android:attr/selectableItemBackgroundBorderless" |
Andrew Lee | 612c5df | 2014-05-30 14:21:33 -0700 | [diff] [blame] | 54 | android:tint="@color/searchbox_icon_tint" /> |
| 55 | |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 56 | <ImageButton |
| 57 | android:id="@+id/dialtacts_options_menu_button" |
| 58 | android:layout_width="@dimen/search_box_icon_size" |
Yorke Lee | 8cda8b0 | 2015-09-16 12:40:00 -0700 | [diff] [blame] | 59 | android:layout_height="match_parent" |
| 60 | android:paddingEnd="@dimen/search_box_right_padding" |
| 61 | android:scaleType="center" |
Andrew Lee | 2e943ee | 2015-05-05 18:36:34 -0700 | [diff] [blame] | 62 | android:background="?android:attr/selectableItemBackgroundBorderless" |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 63 | android:src="@drawable/ic_overflow_menu" |
| 64 | android:contentDescription="@string/action_menu_overflow_description" |
Andrew Lee | 612c5df | 2014-05-30 14:21:33 -0700 | [diff] [blame] | 65 | android:tint="@color/searchbox_icon_tint" /> |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 66 | |
| 67 | </LinearLayout> |
| 68 | |
Brian Attwell | 70c91b7 | 2014-05-30 17:16:08 -0700 | [diff] [blame] | 69 | <include layout="@layout/search_bar_expanded" /> |
Yorke Lee | 11ca39e | 2014-05-19 20:31:37 -0700 | [diff] [blame] | 70 | |
Andrew Lee | d871e55 | 2014-06-04 14:02:48 -0700 | [diff] [blame] | 71 | </view> |