| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| ~ Copyright (C) 2020 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.constraintlayout.widget.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent"> |
| |
| <ImageView |
| android:id="@+id/optional_image" |
| android:layout_height="@dimen/card_content_image_size" |
| android:layout_width="@dimen/card_content_image_size" |
| android:visibility="gone" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="@+id/primary_text" |
| app:layout_constraintBottom_toBottomOf="@+id/secondary_text"/> |
| |
| <TextView |
| android:id="@+id/primary_text" |
| android:layout_height="wrap_content" |
| android:layout_width="0dp" |
| android:maxLines="2" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:layout_marginStart="@dimen/card_content_image_margin" |
| app:layout_goneMarginStart="0dp" |
| app:layout_constraintStart_toEndOf="@+id/optional_image" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@+id/secondary_text"/> |
| |
| <Chronometer |
| android:id="@+id/optional_timer" |
| android:visibility="gone" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| app:layout_constraintStart_toStartOf="@+id/primary_text" |
| app:layout_constraintTop_toTopOf="@+id/secondary_text" |
| app:layout_constraintBottom_toBottomOf="@+id/secondary_text"/> |
| |
| <TextView |
| android:id="@+id/optional_timer_separator" |
| android:visibility="gone" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:text="@string/ongoing_call_duration_text_separator" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| app:layout_constraintStart_toEndOf="@+id/optional_timer" |
| app:layout_constraintTop_toTopOf="@+id/secondary_text" |
| app:layout_constraintBottom_toBottomOf="@+id/secondary_text"/> |
| |
| <TextView |
| android:id="@+id/secondary_text" |
| android:layout_height="wrap_content" |
| android:layout_width="0dp" |
| android:singleLine="true" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| android:layout_marginTop="@dimen/secondary_text_margin_top" |
| app:layout_constraintStart_toEndOf="@+id/optional_timer_separator" |
| app:layout_constraintEnd_toEndOf="@+id/primary_text" |
| app:layout_constraintTop_toBottomOf="@+id/primary_text" |
| app:layout_constraintBottom_toBottomOf="parent"/> |
| </androidx.constraintlayout.widget.ConstraintLayout> |