• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="@dimen/breadcrumb_item_height"
32  android:layout_alignParentTop="true"
33  android:focusable="true"
34  android:gravity="center_vertical"
35  android:orientation="horizontal">
36
37    <com.android.documentsui.DragOverTextView
38        android:id="@+id/breadcrumb_text"
39        android:layout_width="wrap_content"
40        android:layout_height="match_parent"
41        android:gravity="center_vertical"
42        android:duplicateParentState="true"
43        android:textAppearance="@android:style/TextAppearance.Material.Widget.ActionBar.Title"
44        android:background="@drawable/breadcrumb_item_background" />
45
46    <ImageView
47        android:id="@+id/breadcrumb_arrow"
48        android:layout_width="wrap_content"
49        android:layout_height="wrap_content"
50        android:src="@drawable/ic_breadcrumb_arrow"
51        android:layout_marginTop="2dp" />
52
53</LinearLayout>