1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2016 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17
18
19<!--
20     CoordinatorLayout is necessary for various components (e.g. Snackbars, and
21     floating action buttons) to operate correctly.
22-->
23<!--
24     focusableInTouchMode is set in order to force key events to go to the activity's global key
25     callback, which is necessary for proper event routing. See BaseActivity.onKeyDown.
26-->
27
28<LinearLayout
29  xmlns:android="http://schemas.android.com/apk/res/android"
30  android:layout_width="wrap_content"
31  android:layout_height="wrap_content"
32  android:minHeight="48dp"
33  android:focusable="true"
34  android:gravity="center_vertical"
35  android:orientation="horizontal">
36
37    <TextView
38        android:id="@+id/breadcrumb_text"
39        android:layout_width="wrap_content"
40        android:layout_height="match_parent"
41        android:maxWidth="275dp"
42        android:gravity="center_vertical"
43        android:duplicateParentState="true"
44        android:maxLines="1"
45        android:ellipsize="end"
46        android:textAppearance="@style/BreadcrumbText"
47        android:background="@drawable/breadcrumb_item_background" />
48
49    <ImageView
50        android:id="@+id/breadcrumb_arrow"
51        android:layout_width="wrap_content"
52        android:layout_height="wrap_content"
53        android:src="@drawable/ic_breadcrumb_arrow"/>
54
55</LinearLayout>