1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2015 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <merge xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent"> 19 <android.support.car.ui.MaxWidthLayout 20 android:id="@+id/max_width_layout" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:layout_marginStart="@dimen/car_drawer_button_container_width"> 24 <android.support.car.ui.CarRecyclerView 25 android:id="@+id/recycler_view" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:layout_gravity="center_horizontal" 29 android:clipChildren="false"/> 30 </android.support.car.ui.MaxWidthLayout> 31 <!-- The scroll bar should be drawn ontop of the centered recycler view--> 32 <FrameLayout 33 android:layout_width="@dimen/car_drawer_button_container_width" 34 android:layout_height="match_parent"> 35 <android.support.car.ui.PagedScrollBarView 36 android:id="@+id/paged_scroll_view" 37 android:layout_width="@dimen/car_paged_list_view_pagination_width" 38 android:layout_height="match_parent" 39 android:paddingBottom="16dp" 40 android:paddingTop="16dp" 41 android:layout_gravity="center_horizontal" 42 android:visibility="invisible"/> 43 </FrameLayout> 44 </merge> 45