70 lines
2.8 KiB
XML
70 lines
2.8 KiB
XML
<!--
|
|
Copyright (C) 2014 The CyanogenMod Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<com.cyanogenmod.eleven.ui.HeaderBar xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="@dimen/header_bar_height"
|
|
android:enabled="false"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="@dimen/drag_and_drop_width"
|
|
android:background="@color/header_action_bar_color"
|
|
android:elevation="@dimen/action_bar_elevation"
|
|
android:theme="@style/ToolBarTheme">
|
|
|
|
<ImageView
|
|
android:id="@+id/header_bar_up"
|
|
android:layout_width="@dimen/header_bar_up_width"
|
|
android:layout_height="@dimen/header_bar_button_height"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0"
|
|
android:scaleType="centerCrop"
|
|
android:background="@drawable/selectable_background"
|
|
android:src="@drawable/btn_header_collapse"/>
|
|
|
|
<TextView
|
|
android:id="@+id/header_bar_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textAllCaps="true"
|
|
android:textColor="@color/header_action_bar_text_color"
|
|
android:textSize="@dimen/text_size_medium"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/header_bar_search_button"
|
|
android:layout_width="@dimen/header_bar_custom_button_width"
|
|
android:layout_height="@dimen/header_bar_button_height"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0"
|
|
android:src="@drawable/ic_action_search"
|
|
android:background="@drawable/selectable_background"
|
|
android:scaleType="centerInside" />
|
|
|
|
<ImageView
|
|
android:id="@+id/header_bar_menu_button"
|
|
android:layout_width="@dimen/header_bar_menu_button_width"
|
|
android:layout_height="@dimen/header_bar_button_height"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0"
|
|
android:scaleType="centerInside"
|
|
android:background="@drawable/selectable_background"
|
|
android:src="@drawable/menu_button_light"/>
|
|
|
|
</com.cyanogenmod.eleven.ui.HeaderBar>
|