linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 1 | <!-- |
linus_lee | 71810eb | 2014-11-20 16:39:38 -0800 | [diff] [blame] | 2 | 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_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 15 | --> |
| 16 | |
linus_lee | 71810eb | 2014-11-20 16:39:38 -0800 | [diff] [blame] | 17 | <com.cyanogenmod.eleven.ui.HeaderBar xmlns:android="http://schemas.android.com/apk/res/android" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 18 | android:layout_width="fill_parent" |
Wilhelm Fitzpatrick | 5700630 | 2014-10-21 15:56:18 -0700 | [diff] [blame] | 19 | android:layout_height="@dimen/header_bar_height" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 20 | android:enabled="false" |
| 21 | android:gravity="center_vertical" |
| 22 | android:orientation="horizontal" |
Wilhelm Fitzpatrick | 5700630 | 2014-10-21 15:56:18 -0700 | [diff] [blame] | 23 | android:paddingStart="@dimen/drag_and_drop_width" |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 24 | android:background="@color/header_action_bar_color" |
| 25 | android:elevation="@dimen/action_bar_elevation" |
| 26 | android:theme="@android:style/ThemeOverlay.Material.Dark.ActionBar"> |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 27 | |
| 28 | <ImageView |
| 29 | android:id="@+id/header_bar_up" |
| 30 | android:layout_width="@dimen/header_bar_up_width" |
Danny Baumann | 6a7b8d8 | 2014-12-19 13:42:57 +0100 | [diff] [blame^] | 31 | android:layout_height="@dimen/header_bar_button_height" |
linus_lee | 08276a0 | 2014-08-28 19:43:43 -0700 | [diff] [blame] | 32 | android:layout_gravity="center_vertical" |
linus_lee | f5a90f5 | 2014-08-26 17:23:44 -0700 | [diff] [blame] | 33 | android:layout_weight="0" |
linus_lee | 08276a0 | 2014-08-28 19:43:43 -0700 | [diff] [blame] | 34 | android:scaleType="centerCrop" |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 35 | android:background="@drawable/selectable_background" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 36 | android:src="@drawable/btn_header_collapse"/> |
| 37 | |
| 38 | <TextView |
| 39 | android:id="@+id/header_bar_title" |
linus_lee | f5a90f5 | 2014-08-26 17:23:44 -0700 | [diff] [blame] | 40 | android:layout_width="0dp" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
linus_lee | f5a90f5 | 2014-08-26 17:23:44 -0700 | [diff] [blame] | 42 | android:layout_weight="1" |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 43 | android:ellipsize="end" |
| 44 | android:singleLine="true" |
linus_lee | b423f72 | 2014-09-03 19:48:29 -0700 | [diff] [blame] | 45 | android:textAllCaps="true" |
linus_lee | ec7eb2e | 2014-08-29 19:44:58 -0700 | [diff] [blame] | 46 | android:textColor="@color/header_action_bar_text_color" |
linus_lee | 137f81b | 2014-10-13 15:26:26 -0700 | [diff] [blame] | 47 | android:textSize="@dimen/text_size_medium" |
| 48 | android:textStyle="bold" /> |
linus_lee | 5d1b179 | 2014-08-21 18:52:12 -0700 | [diff] [blame] | 49 | |
linus_lee | f5a90f5 | 2014-08-26 17:23:44 -0700 | [diff] [blame] | 50 | <ImageView |
Wilhelm Fitzpatrick | 5700630 | 2014-10-21 15:56:18 -0700 | [diff] [blame] | 51 | android:id="@+id/header_bar_search_button" |
linus_lee | 08276a0 | 2014-08-28 19:43:43 -0700 | [diff] [blame] | 52 | android:layout_width="@dimen/header_bar_custom_button_width" |
Danny Baumann | 6a7b8d8 | 2014-12-19 13:42:57 +0100 | [diff] [blame^] | 53 | android:layout_height="@dimen/header_bar_button_height" |
linus_lee | 08276a0 | 2014-08-28 19:43:43 -0700 | [diff] [blame] | 54 | android:layout_gravity="center_vertical" |
| 55 | android:layout_weight="0" |
Wilhelm Fitzpatrick | 5700630 | 2014-10-21 15:56:18 -0700 | [diff] [blame] | 56 | android:src="@drawable/ic_action_search" |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 57 | android:background="@drawable/selectable_background" |
Wilhelm Fitzpatrick | 5700630 | 2014-10-21 15:56:18 -0700 | [diff] [blame] | 58 | android:scaleType="centerInside" /> |
linus_lee | 08276a0 | 2014-08-28 19:43:43 -0700 | [diff] [blame] | 59 | |
| 60 | <ImageView |
linus_lee | f5a90f5 | 2014-08-26 17:23:44 -0700 | [diff] [blame] | 61 | android:id="@+id/header_bar_menu_button" |
| 62 | android:layout_width="@dimen/header_bar_menu_button_width" |
Danny Baumann | 6a7b8d8 | 2014-12-19 13:42:57 +0100 | [diff] [blame^] | 63 | android:layout_height="@dimen/header_bar_button_height" |
linus_lee | 08276a0 | 2014-08-28 19:43:43 -0700 | [diff] [blame] | 64 | android:layout_gravity="center_vertical" |
linus_lee | f5a90f5 | 2014-08-26 17:23:44 -0700 | [diff] [blame] | 65 | android:layout_weight="0" |
Wilhelm Fitzpatrick | 5700630 | 2014-10-21 15:56:18 -0700 | [diff] [blame] | 66 | android:scaleType="centerInside" |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 67 | android:background="@drawable/selectable_background" |
linus_lee | ec7eb2e | 2014-08-29 19:44:58 -0700 | [diff] [blame] | 68 | android:src="@drawable/menu_button_light"/> |
linus_lee | f5a90f5 | 2014-08-26 17:23:44 -0700 | [diff] [blame] | 69 | |
linuxx | 81e13fb | 2014-12-10 18:25:02 +0100 | [diff] [blame] | 70 | </com.cyanogenmod.eleven.ui.HeaderBar> |