• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2019 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<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:orientation="vertical">
24
25    <androidx.constraintlayout.widget.ConstraintLayout
26        android:layout_width="match_parent"
27        android:layout_height="@*android:dimen/car_app_bar_height">
28
29        <FrameLayout
30            android:id="@+id/back_button"
31            android:layout_width="0dp"
32            android:layout_height="0dp"
33            android:background="?android:attr/selectableItemBackground"
34            app:layout_constraintBottom_toBottomOf="parent"
35            app:layout_constraintEnd_toStartOf="@+id/start_margin"
36            app:layout_constraintStart_toStartOf="parent"
37            app:layout_constraintTop_toTopOf="parent">
38            <ImageView
39                android:layout_width="@*android:dimen/car_primary_icon_size"
40                android:layout_height="@*android:dimen/car_primary_icon_size"
41                android:layout_gravity="center"
42                android:scaleType="fitCenter"
43                android:src="@drawable/ic_arrow_back"
44                android:tint="?android:attr/textColorPrimary"/>
45        </FrameLayout>
46
47        <androidx.constraintlayout.widget.Guideline
48            android:id="@+id/start_margin"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            android:orientation="vertical"
52            app:layout_constraintGuide_begin="@*android:dimen/action_bar_margin_start"/>
53
54        <TextView
55            android:id="@+id/label"
56            android:layout_width="wrap_content"
57            android:layout_height="wrap_content"
58            android:singleLine="true"
59            android:textAppearance="?android:attr/textAppearanceLarge"
60            app:layout_constraintBottom_toBottomOf="parent"
61            app:layout_constraintStart_toEndOf="@+id/start_margin"
62            app:layout_constraintTop_toTopOf="parent"/>
63
64        <Button
65            android:id="@+id/action"
66            style="@*android:style/ActionBarButton"
67            android:layout_width="wrap_content"
68            android:layout_height="0dp"
69            android:layout_marginEnd="@*android:dimen/action_bar_button_margin"
70            android:visibility="gone"
71            app:layout_constraintBottom_toBottomOf="parent"
72            app:layout_constraintEnd_toEndOf="parent"
73            app:layout_constraintTop_toTopOf="parent"/>
74    </androidx.constraintlayout.widget.ConstraintLayout>
75
76    <ProgressBar
77        android:id="@+id/progress_bar"
78        style="@android:style/Widget.DeviceDefault.ProgressBar.Horizontal"
79        android:layout_width="match_parent"
80        android:layout_height="wrap_content"
81        android:indeterminate="true"
82        android:visibility="gone"/>
83
84    <FrameLayout
85        android:id="@android:id/list_container"
86        android:layout_width="match_parent"
87        android:layout_height="match_parent"
88        android:paddingEnd="@*android:dimen/car_margin"
89        android:paddingStart="@*android:dimen/car_margin"/>
90</LinearLayout>
91