blob: 4e66b132541aa4d8c88c05e62e5972324fe4a6fc [file] [log] [blame]
linus_lee5d1b1792014-08-21 18:52:12 -07001<!--
linus_lee71810eb2014-11-20 16:39:38 -08002 Copyright (C) 2014 The CyanogenMod 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.
linus_lee5d1b1792014-08-21 18:52:12 -070015-->
16
linus_lee71810eb2014-11-20 16:39:38 -080017<com.cyanogenmod.eleven.ui.HeaderBar xmlns:android="http://schemas.android.com/apk/res/android"
linus_lee5d1b1792014-08-21 18:52:12 -070018 android:layout_width="fill_parent"
Wilhelm Fitzpatrick57006302014-10-21 15:56:18 -070019 android:layout_height="@dimen/header_bar_height"
linus_lee5d1b1792014-08-21 18:52:12 -070020 android:enabled="false"
21 android:gravity="center_vertical"
22 android:orientation="horizontal"
Wilhelm Fitzpatrick57006302014-10-21 15:56:18 -070023 android:paddingStart="@dimen/drag_and_drop_width"
linuxx81e13fb2014-12-10 18:25:02 +010024 android:background="@color/header_action_bar_color"
25 android:elevation="@dimen/action_bar_elevation"
26 android:theme="@android:style/ThemeOverlay.Material.Dark.ActionBar">
linus_lee5d1b1792014-08-21 18:52:12 -070027
28 <ImageView
29 android:id="@+id/header_bar_up"
30 android:layout_width="@dimen/header_bar_up_width"
Danny Baumann6a7b8d82014-12-19 13:42:57 +010031 android:layout_height="@dimen/header_bar_button_height"
linus_lee08276a02014-08-28 19:43:43 -070032 android:layout_gravity="center_vertical"
linus_leef5a90f52014-08-26 17:23:44 -070033 android:layout_weight="0"
linus_lee08276a02014-08-28 19:43:43 -070034 android:scaleType="centerCrop"
linuxx81e13fb2014-12-10 18:25:02 +010035 android:background="@drawable/selectable_background"
linus_lee5d1b1792014-08-21 18:52:12 -070036 android:src="@drawable/btn_header_collapse"/>
37
38 <TextView
39 android:id="@+id/header_bar_title"
linus_leef5a90f52014-08-26 17:23:44 -070040 android:layout_width="0dp"
linus_lee5d1b1792014-08-21 18:52:12 -070041 android:layout_height="wrap_content"
linus_leef5a90f52014-08-26 17:23:44 -070042 android:layout_weight="1"
linus_lee5d1b1792014-08-21 18:52:12 -070043 android:ellipsize="end"
44 android:singleLine="true"
linus_leeb423f722014-09-03 19:48:29 -070045 android:textAllCaps="true"
linus_leeec7eb2e2014-08-29 19:44:58 -070046 android:textColor="@color/header_action_bar_text_color"
linus_lee137f81b2014-10-13 15:26:26 -070047 android:textSize="@dimen/text_size_medium"
48 android:textStyle="bold" />
linus_lee5d1b1792014-08-21 18:52:12 -070049
linus_leef5a90f52014-08-26 17:23:44 -070050 <ImageView
Wilhelm Fitzpatrick57006302014-10-21 15:56:18 -070051 android:id="@+id/header_bar_search_button"
linus_lee08276a02014-08-28 19:43:43 -070052 android:layout_width="@dimen/header_bar_custom_button_width"
Danny Baumann6a7b8d82014-12-19 13:42:57 +010053 android:layout_height="@dimen/header_bar_button_height"
linus_lee08276a02014-08-28 19:43:43 -070054 android:layout_gravity="center_vertical"
55 android:layout_weight="0"
Wilhelm Fitzpatrick57006302014-10-21 15:56:18 -070056 android:src="@drawable/ic_action_search"
linuxx81e13fb2014-12-10 18:25:02 +010057 android:background="@drawable/selectable_background"
Wilhelm Fitzpatrick57006302014-10-21 15:56:18 -070058 android:scaleType="centerInside" />
linus_lee08276a02014-08-28 19:43:43 -070059
60 <ImageView
linus_leef5a90f52014-08-26 17:23:44 -070061 android:id="@+id/header_bar_menu_button"
62 android:layout_width="@dimen/header_bar_menu_button_width"
Danny Baumann6a7b8d82014-12-19 13:42:57 +010063 android:layout_height="@dimen/header_bar_button_height"
linus_lee08276a02014-08-28 19:43:43 -070064 android:layout_gravity="center_vertical"
linus_leef5a90f52014-08-26 17:23:44 -070065 android:layout_weight="0"
Wilhelm Fitzpatrick57006302014-10-21 15:56:18 -070066 android:scaleType="centerInside"
linuxx81e13fb2014-12-10 18:25:02 +010067 android:background="@drawable/selectable_background"
linus_leeec7eb2e2014-08-29 19:44:58 -070068 android:src="@drawable/menu_button_light"/>
linus_leef5a90f52014-08-26 17:23:44 -070069
linuxx81e13fb2014-12-10 18:25:02 +010070</com.cyanogenmod.eleven.ui.HeaderBar>