You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
3.3 KiB
81 lines
3.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 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_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<!-- Clone the top guideline since we don't need the others here. -->
|
|
<Space
|
|
android:id="@+id/ui_content_top_guideline2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="@dimen/car_ui_toolbar_first_row_height"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
/>
|
|
|
|
<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_guideline2"
|
|
app:layout_constraintBottom_toTopOf="@+id/error_message"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
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="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:maxLines="3"
|
|
android:text="@string/nothing_to_play"
|
|
android:visibility="gone"/>
|
|
|
|
<com.android.car.ui.FocusArea
|
|
android:id="@+id/focus_area"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
<com.android.car.ui.recyclerview.CarUiRecyclerView
|
|
android:id="@+id/browse_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clickable="true"
|
|
android:clipToPadding="false"
|
|
android:visibility="gone"
|
|
app:layoutStyle="grid"
|
|
app:numOfColumns="@integer/num_browse_columns"/>
|
|
</com.android.car.ui.FocusArea>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|