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_toTopOf="@+id/car_ui_scrollbar_track" 49 app:layout_constraintBottom_toBottomOf="@+id/car_ui_scrollbar_track" 50 app:layout_constraintLeft_toLeftOf="parent" 51 app:layout_constraintRight_toRightOf="parent"/> 52 53 <View 54 android:id="@+id/car_ui_scrollbar_track" 55 android:layout_width="0dp" 56 android:layout_height="0dp" 57 android:layout_marginTop="@dimen/car_ui_scrollbar_separator_margin" 58 android:layout_marginBottom="@dimen/car_ui_scrollbar_separator_margin" 59 app:layout_constraintTop_toBottomOf="@+id/car_ui_scrollbar_page_up" 60 app:layout_constraintBottom_toTopOf="@+id/car_ui_scrollbar_page_down" 61 app:layout_constraintStart_toStartOf="parent" 62 app:layout_constraintEnd_toEndOf="parent"/> 63 64 <ImageView 65 android:id="@+id/car_ui_scrollbar_page_down" 66 android:layout_width="@dimen/car_ui_scrollbar_button_size" 67 android:layout_height="@dimen/car_ui_scrollbar_button_size" 68 android:background="@drawable/car_ui_recyclerview_button_ripple_background" 69 android:contentDescription="@string/car_ui_scrollbar_page_down_button" 70 android:focusable="false" 71 android:hapticFeedbackEnabled="false" 72 android:src="@drawable/car_ui_recyclerview_ic_down" 73 android:scaleType="centerInside" 74 android:layout_marginBottom="15dp" 75 app:layout_constraintBottom_toBottomOf="parent" 76 app:layout_constraintLeft_toLeftOf="parent" 77 app:layout_constraintRight_toRightOf="parent"/> 78</androidx.constraintlayout.widget.ConstraintLayout> 79