| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright 2019 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. |
| --> |
| <merge |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto"> |
| |
| <androidx.constraintlayout.widget.Guideline |
| android:id="@+id/background_image_guideline" |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:orientation="vertical" |
| app:layout_constraintGuide_percent=".5" /> |
| |
| <com.android.car.apps.common.CrossfadeImageView |
| android:id="@+id/background_image_image" |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| app:align_horizontal="right" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintLeft_toLeftOf="parent" |
| app:layout_constraintRight_toLeftOf="@+id/background_image_guideline"/> |
| |
| <View |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:background="@drawable/background_image_scrim" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintLeft_toLeftOf="parent" |
| app:layout_constraintRight_toRightOf="parent"/> |
| |
| <View |
| android:id="@+id/background_image_darkening_scrim" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@color/background_image_30p_black" |
| android:visibility="gone" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintLeft_toRightOf="parent" |
| app:layout_constraintRight_toRightOf="parent"/> |
| </merge> |