blob: 21402753b8fb15213294eed7b705d27e7e7fb2e2 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2021 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.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.car.ui.recyclerview.CarUiRecyclerViewContainer
android:id="@+id/car_ui_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="112dp"
android:tag="carUiRecyclerView" />
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="left" >
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="112dp"
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="76dp"
android:layout_height="76dp"
android:background="@drawable/car_ui_recyclerview_button_ripple_background_private"
android:contentDescription="Scroll up"
android:focusable="false"
android:hapticFeedbackEnabled="false"
android:src="@drawable/car_ui_recyclerview_ic_up_private"
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="7dp"
android:layout_height="0dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/car_ui_recyclerview_scrollbar_thumb_private"
app:layout_constraintTop_toTopOf="@+id/car_ui_scrollbar_track"
app:layout_constraintBottom_toBottomOf="@+id/car_ui_scrollbar_track"
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="16dp"
android:layout_marginBottom="16dp"
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="76dp"
android:layout_height="76dp"
android:background="@drawable/car_ui_recyclerview_button_ripple_background_private"
android:contentDescription="Scroll down"
android:focusable="false"
android:hapticFeedbackEnabled="false"
android:src="@drawable/car_ui_recyclerview_ic_down_private"
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>
</FrameLayout>
</merge>