1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2018, 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<androidx.cardview.widget.CardView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    style="@style/ContextualSpace"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    app:contentPadding="@dimen/contextual_padding">
24
25    <androidx.constraintlayout.widget.ConstraintLayout
26        android:layout_width="match_parent"
27        android:layout_height="match_parent">
28
29        <ImageView
30            android:id="@+id/icon"
31            android:layout_width="80dp"
32            android:layout_height="80dp"
33            app:layout_constraintStart_toStartOf="parent"
34            app:layout_constraintTop_toTopOf="parent"
35            app:layout_constraintBottom_toBottomOf="parent"/>
36
37        <TextView
38            android:id="@+id/top_line"
39            android:layout_width="0dp"
40            android:layout_height="wrap_content"
41            android:layout_marginStart="@dimen/icon_end_margin"
42            android:singleLine="true"
43            android:textAppearance="?android:attr/textAppearanceLarge"
44            app:layout_constraintEnd_toEndOf="parent"
45            app:layout_constraintHorizontal_bias="0.0"
46            app:layout_constraintStart_toEndOf="@+id/icon"
47            app:layout_constraintTop_toTopOf="parent"
48            app:layout_constraintBottom_toTopOf="@+id/bottom_line_container"
49            app:layout_constraintVertical_chainStyle="packed"/>
50
51        <LinearLayout
52            android:id="@+id/bottom_line_container"
53            android:layout_width="wrap_content"
54            android:layout_height="wrap_content"
55            android:layout_marginStart="@dimen/icon_end_margin"
56            android:layout_marginTop="@dimen/line_gap_margin"
57            android:baselineAligned="true"
58            app:layout_constraintStart_toEndOf="@+id/icon"
59            app:layout_constraintTop_toBottomOf="@+id/top_line"
60            app:layout_constraintBottom_toBottomOf="parent">
61
62            <TextView
63                android:id="@+id/bottom_line"
64                android:layout_width="wrap_content"
65                android:layout_height="wrap_content"
66                android:ellipsize="end"
67                android:maxLines="1"
68                android:textAppearance="?android:attr/textAppearanceLarge"/>
69
70            <TextView
71                android:id="@+id/date_divider"
72                android:layout_width="wrap_content"
73                android:layout_height="wrap_content"
74                android:layout_marginStart="4dp"
75                android:layout_marginEnd="6dp"
76                android:text="&#x2502;"
77                android:textAppearance="?android:attr/textAppearanceLarge"
78                android:textColor="@color/date_divider_bar_color"/>
79
80            <com.android.car.carlauncher.LocalizedTextClock
81                android:id="@+id/date"
82                android:layout_width="wrap_content"
83                android:layout_height="wrap_content"
84                android:format12Hour="@string/date"
85                android:format24Hour="@string/date"
86                android:textAppearance="?android:attr/textAppearanceLarge"/>
87
88        </LinearLayout>
89
90    </androidx.constraintlayout.widget.ConstraintLayout>
91
92</androidx.cardview.widget.CardView>
93