blob: 820567645b7e6f77accdec97a5549b747569f820 [file] [log] [blame]
Jin Caod0334732014-09-01 22:33:14 -07001<?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 Shahf50fe882014-09-10 15:40:51 -070025 app:contentInsetStart="@dimen/action_bar_content_inset_start"
Jin Caod0334732014-09-01 22:33:14 -070026 app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
27 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" >
28
29 <!-- Custom view for search icon -->
30 <LinearLayout
Jin Caoed5dffd2014-09-09 13:02:42 -070031 android:id="@+id/actionbar_custom_view"
Jin Caod0334732014-09-01 22:33:14 -070032 android:layout_width="match_parent"
33 android:layout_height="match_parent">
34
35 <TextView
36 android:id="@+id/actionbar_title"
Jin Caoed5dffd2014-09-09 13:02:42 -070037 android:layout_width="0dp"
38 android:layout_height="match_parent"
39 android:layout_weight="1"
Jin Caod0334732014-09-01 22:33:14 -070040 android:gravity="center_vertical|start"
Jin Cao9a1a7d32014-09-22 16:48:20 -070041 style="@style/ToolbarTitleStyle" />
Jin Caod0334732014-09-01 22:33:14 -070042
43 <ImageView
44 android:id="@+id/actionbar_search_button"
45 android:layout_width="56dp"
46 android:layout_height="match_parent"
Jin Cao43346302014-10-17 17:32:09 -070047 android:background="?attr/selectableItemBackgroundBorderless"
Jin Caoe66107e2014-09-16 12:02:38 -070048 android:contentDescription="@string/menu_search"
Jin Caod0334732014-09-01 22:33:14 -070049 android:scaleType="center"
50 android:src="@drawable/ic_menu_search" />
51
52 </LinearLayout>
53
54</com.android.mail.ui.CustomViewToolbar>