| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2018, The Android Open Source 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. |
| --> |
| <androidx.cardview.widget.CardView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| style="@style/ContextualSpace" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| app:contentPadding="@dimen/contextual_padding"> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_gravity="center_vertical|start"> |
| |
| <ImageView |
| android:id="@+id/icon" |
| android:layout_width="80dp" |
| android:layout_height="80dp" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent"/> |
| |
| <TextView |
| android:id="@+id/top_line" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="@dimen/icon_end_margin" |
| android:singleLine="true" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHorizontal_bias="0.0" |
| app:layout_constraintStart_toEndOf="@+id/icon" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@+id/bottom_line_container" |
| app:layout_constraintVertical_chainStyle="packed"/> |
| |
| <LinearLayout |
| android:id="@+id/bottom_line_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="@dimen/icon_end_margin" |
| android:layout_marginTop="@dimen/line_gap_margin" |
| android:baselineAligned="true" |
| app:layout_constraintStart_toEndOf="@+id/icon" |
| app:layout_constraintTop_toBottomOf="@+id/top_line" |
| app:layout_constraintBottom_toBottomOf="parent"> |
| |
| <TextView |
| android:id="@+id/bottom_line" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textAppearance="?android:attr/textAppearanceLarge"/> |
| |
| <TextView |
| android:id="@+id/date_divider" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="4dp" |
| android:layout_marginEnd="6dp" |
| android:text="│" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:textColor="@color/date_divider_bar_color"/> |
| |
| <com.android.car.carlauncher.LocalizedTextClock |
| android:id="@+id/date" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:format12Hour="@string/date" |
| android:format24Hour="@string/date" |
| android:textAppearance="?android:attr/textAppearanceLarge"/> |
| |
| </LinearLayout> |
| |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| |
| </androidx.cardview.widget.CardView> |