| <?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.constraintlayout.widget.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <include layout="@layout/ui_guides"/> |
| |
| <ImageView |
| android:id="@+id/error_icon" |
| android:layout_width="@dimen/missing_permission_icon_size" |
| android:layout_height="@dimen/missing_permission_icon_size" |
| app:layout_constraintTop_toBottomOf="@+id/ui_content_top_guideline" |
| app:layout_constraintBottom_toTopOf="@+id/error_message" |
| app:layout_constraintStart_toStartOf="@+id/ui_content_start_guideline" |
| app:layout_constraintEnd_toEndOf="@+id/ui_content_end_guideline" |
| app:layout_constraintVertical_chainStyle="packed" |
| android:src="@drawable/error_illustration" |
| android:visibility="gone" |
| android:tint="@color/icon_tint"/> |
| |
| <TextView |
| android:id="@+id/error_message" |
| android:layout_width="wrap_content" |
| style="@style/ErrorTextStyle" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/browse_state_error_margin_top" |
| app:layout_constraintTop_toBottomOf="@+id/error_icon" |
| app:layout_constraintBottom_toBottomOf="@+id/ui_content_bottom_guideline" |
| app:layout_constraintStart_toStartOf="@+id/ui_content_start_guideline" |
| app:layout_constraintEnd_toEndOf="@+id/ui_content_end_guideline" |
| android:maxLines="3" |
| android:text="@string/nothing_to_play" |
| android:visibility="gone" /> |
| |
| <com.android.car.ui.recyclerview.CarUiRecyclerView |
| android:id="@+id/browse_list" |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| app:layout_constraintStart_toStartOf="@+id/ui_content_start_guideline" |
| app:layout_constraintEnd_toEndOf="@+id/ui_content_end_guideline" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@+id/ui_content_bottom_guideline" |
| android:clickable="true" |
| android:focusable="true" |
| android:clipToPadding="false" |
| android:visibility="gone" |
| app:layoutStyle="grid" |
| app:numOfColumns="@integer/num_browse_columns" |
| /> |
| |
| <include layout="@layout/car_ui_base_layout_toolbar"/> |
| |
| </androidx.constraintlayout.widget.ConstraintLayout> |