• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2020, 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.constraintlayout.widget.ConstraintLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22
23    <!-- Clone the top guideline since we don't need the others here. -->
24    <Space
25        android:id="@+id/ui_content_top_guideline2"
26        android:layout_width="match_parent"
27        android:layout_height="0dp"
28        android:layout_marginTop="@dimen/car_ui_toolbar_first_row_height"
29        app:layout_constraintStart_toStartOf="parent"
30        app:layout_constraintEnd_toEndOf="parent"
31        app:layout_constraintTop_toTopOf="parent"
32    />
33
34    <ImageView
35        android:id="@+id/error_icon"
36        android:layout_width="@dimen/missing_permission_icon_size"
37        android:layout_height="@dimen/missing_permission_icon_size"
38        app:layout_constraintTop_toBottomOf="@+id/ui_content_top_guideline2"
39        app:layout_constraintBottom_toTopOf="@+id/error_message"
40        app:layout_constraintStart_toStartOf="parent"
41        app:layout_constraintEnd_toEndOf="parent"
42        app:layout_constraintVertical_chainStyle="packed"
43        android:src="@drawable/error_illustration"
44        android:visibility="gone"
45        android:tint="@color/icon_tint"/>
46
47    <TextView
48        android:id="@+id/error_message"
49        android:layout_width="wrap_content"
50        style="@style/ErrorTextStyle"
51        android:layout_height="wrap_content"
52        android:layout_marginTop="@dimen/browse_state_error_margin_top"
53        app:layout_constraintTop_toBottomOf="@+id/error_icon"
54        app:layout_constraintBottom_toBottomOf="parent"
55        app:layout_constraintStart_toStartOf="parent"
56        app:layout_constraintEnd_toEndOf="parent"
57        android:maxLines="3"
58        android:text="@string/nothing_to_play"
59        android:visibility="gone"/>
60
61    <com.android.car.ui.FocusArea
62        android:id="@+id/focus_area"
63        android:layout_width="0dp"
64        android:layout_height="0dp"
65        app:layout_constraintStart_toStartOf="parent"
66        app:layout_constraintEnd_toEndOf="parent"
67        app:layout_constraintTop_toTopOf="parent"
68        app:layout_constraintBottom_toBottomOf="parent">
69        <com.android.car.ui.recyclerview.CarUiRecyclerView
70            android:id="@+id/browse_list"
71            android:layout_width="match_parent"
72            android:layout_height="match_parent"
73            android:clickable="true"
74            android:clipToPadding="false"
75            android:visibility="gone"
76            app:layoutStyle="grid"
77            app:numOfColumns="@integer/num_browse_columns"/>
78    </com.android.car.ui.FocusArea>
79
80</androidx.constraintlayout.widget.ConstraintLayout>
81