1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright 2019 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
18<androidx.constraintlayout.widget.ConstraintLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="@dimen/car_ui_scrollbar_container_width"
22    android:layout_height="match_parent"
23    android:id="@+id/car_ui_scroll_bar"
24    android:gravity="center">
25
26    <ImageView
27        android:id="@+id/car_ui_scrollbar_page_up"
28        android:layout_width="@dimen/car_ui_scrollbar_button_size"
29        android:layout_height="@dimen/car_ui_scrollbar_button_size"
30        android:background="@drawable/car_ui_recyclerview_button_ripple_background"
31        android:contentDescription="@string/car_ui_scrollbar_page_up_button"
32        android:focusable="false"
33        android:hapticFeedbackEnabled="false"
34        android:src="@drawable/car_ui_recyclerview_ic_up"
35        android:scaleType="centerInside"
36        android:layout_marginTop="15dp"
37        app:layout_constraintTop_toTopOf="parent"
38        app:layout_constraintLeft_toLeftOf="parent"
39        app:layout_constraintRight_toRightOf="parent"/>
40
41    <!-- View height is dynamically calculated during layout. -->
42    <View
43        android:id="@+id/car_ui_scrollbar_thumb"
44        android:layout_width="@dimen/car_ui_scrollbar_thumb_width"
45        android:layout_height="0dp"
46        android:layout_gravity="center_horizontal"
47        android:background="@drawable/car_ui_recyclerview_scrollbar_thumb"
48        app:layout_constraintTop_toBottomOf="@+id/car_ui_scrollbar_page_up"
49        app:layout_constraintLeft_toLeftOf="parent"
50        app:layout_constraintRight_toRightOf="parent"/>
51
52    <View
53        android:id="@+id/car_ui_scrollbar_track"
54        android:layout_width="0dp"
55        android:layout_height="0dp"
56        android:layout_marginTop="@dimen/car_ui_scrollbar_separator_margin"
57        android:layout_marginBottom="@dimen/car_ui_scrollbar_separator_margin"
58        app:layout_constraintTop_toBottomOf="@+id/car_ui_scrollbar_page_up"
59        app:layout_constraintBottom_toTopOf="@+id/car_ui_scrollbar_page_down"
60        app:layout_constraintStart_toStartOf="parent"
61        app:layout_constraintEnd_toEndOf="parent"/>
62
63    <ImageView
64        android:id="@+id/car_ui_scrollbar_page_down"
65        android:layout_width="@dimen/car_ui_scrollbar_button_size"
66        android:layout_height="@dimen/car_ui_scrollbar_button_size"
67        android:background="@drawable/car_ui_recyclerview_button_ripple_background"
68        android:contentDescription="@string/car_ui_scrollbar_page_down_button"
69        android:focusable="false"
70        android:hapticFeedbackEnabled="false"
71        android:src="@drawable/car_ui_recyclerview_ic_down"
72        android:scaleType="centerInside"
73        android:layout_marginBottom="15dp"
74        app:layout_constraintBottom_toBottomOf="parent"
75        app:layout_constraintLeft_toLeftOf="parent"
76        app:layout_constraintRight_toRightOf="parent"/>
77</androidx.constraintlayout.widget.ConstraintLayout>
78