blob: 589681984873793818d47d6eab08feb7f8477a66 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2019 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="@dimen/car_ui_scrollbar_container_width"
android:layout_height="match_parent"
android:id="@+id/car_ui_scroll_bar"
android:gravity="center">
<ImageView
android:id="@+id/car_ui_scrollbar_page_up"
android:layout_width="@dimen/car_ui_scrollbar_button_size"
android:layout_height="@dimen/car_ui_scrollbar_button_size"
android:background="@drawable/car_ui_recyclerview_button_ripple_background"
android:contentDescription="@string/car_ui_scrollbar_page_up_button"
android:focusable="false"
android:hapticFeedbackEnabled="false"
android:src="@drawable/car_ui_recyclerview_ic_up"
android:scaleType="centerInside"
android:layout_marginTop="15dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
<!-- View height is dynamically calculated during layout. -->
<View
android:id="@+id/car_ui_scrollbar_thumb"
android:layout_width="@dimen/car_ui_scrollbar_thumb_width"
android:layout_height="0dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/car_ui_recyclerview_scrollbar_thumb"
app:layout_constraintTop_toBottomOf="@+id/car_ui_scrollbar_page_up"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
<View
android:id="@+id/car_ui_scrollbar_track"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="@dimen/car_ui_scrollbar_separator_margin"
android:layout_marginBottom="@dimen/car_ui_scrollbar_separator_margin"
app:layout_constraintTop_toBottomOf="@+id/car_ui_scrollbar_page_up"
app:layout_constraintBottom_toTopOf="@+id/car_ui_scrollbar_page_down"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<ImageView
android:id="@+id/car_ui_scrollbar_page_down"
android:layout_width="@dimen/car_ui_scrollbar_button_size"
android:layout_height="@dimen/car_ui_scrollbar_button_size"
android:background="@drawable/car_ui_recyclerview_button_ripple_background"
android:contentDescription="@string/car_ui_scrollbar_page_down_button"
android:focusable="false"
android:hapticFeedbackEnabled="false"
android:src="@drawable/car_ui_recyclerview_ic_down"
android:scaleType="centerInside"
android:layout_marginBottom="15dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>