Jin Cao | d033473 | 2014-09-01 22:33:14 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 Google Inc. |
| 4 | Licensed to The Android Open Source Project. |
| 5 | |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | --> |
| 18 | |
| 19 | <com.android.mail.ui.CustomViewToolbar |
| 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 22 | android:id="@+id/mail_toolbar" |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="match_parent" |
Rohan Shah | f50fe88 | 2014-09-10 15:40:51 -0700 | [diff] [blame] | 25 | app:contentInsetStart="@dimen/action_bar_content_inset_start" |
Jin Cao | d033473 | 2014-09-01 22:33:14 -0700 | [diff] [blame] | 26 | app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
| 27 | app:popupTheme="@style/ThemeOverlay.AppCompat.Light" > |
| 28 | |
| 29 | <!-- Custom view for search icon --> |
| 30 | <LinearLayout |
Jin Cao | ed5dffd | 2014-09-09 13:02:42 -0700 | [diff] [blame] | 31 | android:id="@+id/actionbar_custom_view" |
Jin Cao | d033473 | 2014-09-01 22:33:14 -0700 | [diff] [blame] | 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="match_parent"> |
| 34 | |
| 35 | <TextView |
| 36 | android:id="@+id/actionbar_title" |
Jin Cao | ed5dffd | 2014-09-09 13:02:42 -0700 | [diff] [blame] | 37 | android:layout_width="0dp" |
| 38 | android:layout_height="match_parent" |
| 39 | android:layout_weight="1" |
Jin Cao | d033473 | 2014-09-01 22:33:14 -0700 | [diff] [blame] | 40 | android:gravity="center_vertical|start" |
Jin Cao | 9a1a7d3 | 2014-09-22 16:48:20 -0700 | [diff] [blame] | 41 | style="@style/ToolbarTitleStyle" /> |
Jin Cao | d033473 | 2014-09-01 22:33:14 -0700 | [diff] [blame] | 42 | |
| 43 | <ImageView |
| 44 | android:id="@+id/actionbar_search_button" |
| 45 | android:layout_width="56dp" |
| 46 | android:layout_height="match_parent" |
Jin Cao | 4334630 | 2014-10-17 17:32:09 -0700 | [diff] [blame] | 47 | android:background="?attr/selectableItemBackgroundBorderless" |
Jin Cao | e66107e | 2014-09-16 12:02:38 -0700 | [diff] [blame] | 48 | android:contentDescription="@string/menu_search" |
Jin Cao | d033473 | 2014-09-01 22:33:14 -0700 | [diff] [blame] | 49 | android:scaleType="center" |
| 50 | android:src="@drawable/ic_menu_search" /> |
| 51 | |
| 52 | </LinearLayout> |
| 53 | |
| 54 | </com.android.mail.ui.CustomViewToolbar> |