1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ~ Copyright (C) 2017 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 <merge 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" > 21 22 <ImageButton 23 android:id="@+id/page_up" 24 android:layout_width="@dimen/car_scroll_bar_button_size" 25 android:layout_height="@dimen/car_scroll_bar_button_size" 26 android:background="@drawable/car_button_ripple_background" 27 android:focusable="false" 28 android:hapticFeedbackEnabled="false" 29 android:src="@drawable/ic_up" 30 android:scaleType="centerInside" /> 31 32 <!-- TODO(deanh): Replace this with a proper asset when we have done. --> 33 <TextView 34 android:textAppearance="@style/TextAppearance.Car.Title" 35 android:id="@+id/alpha_jump" 36 android:layout_width="@dimen/car_scroll_bar_button_size" 37 android:layout_height="@dimen/car_scroll_bar_button_size" 38 android:background="@drawable/car_card_ripple_background" 39 android:focusable="false" 40 android:hapticFeedbackEnabled="false" 41 android:gravity="center" 42 android:text="@string/alpha_jump_placeholder_text" 43 android:visibility="gone" /> 44 45 <View 46 android:id="@+id/scrollbar_thumb" 47 android:layout_width="@dimen/car_scroll_bar_thumb_width" 48 android:layout_height="0dp" 49 android:layout_gravity="center_horizontal" 50 android:background="@drawable/car_scrollbar_thumb" /> 51 52 <ImageButton 53 android:id="@+id/page_down" 54 android:layout_width="@dimen/car_scroll_bar_button_size" 55 android:layout_height="@dimen/car_scroll_bar_button_size" 56 android:background="@drawable/car_button_ripple_background" 57 android:focusable="false" 58 android:hapticFeedbackEnabled="false" 59 android:src="@drawable/ic_down" 60 android:scaleType="centerInside" /> 61 </merge> 62