OSDN Git Service

Eleven: materialize
[android-x86/packages-apps-Eleven.git] / res / layout / header_bar.xml
1 <!--
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.
15 -->
16
17 <com.cyanogenmod.eleven.ui.HeaderBar xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_width="fill_parent"
19     android:layout_height="@dimen/header_bar_height"
20     android:enabled="false"
21     android:gravity="center_vertical"
22     android:orientation="horizontal"
23     android:paddingStart="@dimen/drag_and_drop_width"
24     android:paddingEnd="@dimen/header_bar_padding_right"
25     android:background="@color/header_action_bar_color"
26     android:elevation="@dimen/action_bar_elevation"
27     android:theme="@android:style/ThemeOverlay.Material.Dark.ActionBar">
28
29     <ImageView
30         android:id="@+id/header_bar_up"
31         android:layout_width="@dimen/header_bar_up_width"
32         android:layout_height="@dimen/header_bar_up_height"
33         android:layout_gravity="center_vertical"
34         android:layout_weight="0"
35         android:layout_marginRight="@dimen/header_bar_button_padding"
36         android:scaleType="centerCrop"
37         android:background="@drawable/selectable_background"
38         android:src="@drawable/btn_header_collapse"/>
39
40     <TextView
41         android:id="@+id/header_bar_title"
42         android:layout_width="0dp"
43         android:layout_height="wrap_content"
44         android:layout_weight="1"
45         android:ellipsize="end"
46         android:singleLine="true"
47         android:textAllCaps="true"
48         android:textColor="@color/header_action_bar_text_color"
49         android:textSize="@dimen/text_size_medium"
50         android:textStyle="bold" />
51
52     <ImageView
53         android:id="@+id/header_bar_search_button"
54         android:layout_width="@dimen/header_bar_custom_button_width"
55         android:layout_height="@dimen/header_bar_custom_button_height"
56         android:layout_gravity="center_vertical"
57         android:layout_weight="0"
58         android:layout_marginStart="@dimen/header_bar_button_padding"
59         android:layout_marginEnd="@dimen/header_bar_button_padding"
60         android:src="@drawable/ic_action_search"
61         android:background="@drawable/selectable_background"
62         android:scaleType="centerInside" />
63
64     <ImageView
65         android:id="@+id/header_bar_menu_button"
66         android:layout_width="@dimen/header_bar_menu_button_width"
67         android:layout_height="@dimen/header_bar_menu_button_height"
68         android:layout_gravity="center_vertical"
69         android:layout_weight="0"
70         android:scaleType="centerInside"
71         android:layout_marginStart="@dimen/header_bar_button_padding"
72         android:background="@drawable/selectable_background"
73         android:src="@drawable/menu_button_light"/>
74
75 </com.cyanogenmod.eleven.ui.HeaderBar>