1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 4 Copyright (C) 2018 The Android Open Source Project 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17--> 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:orientation="vertical"> 24 25 <androidx.viewpager.widget.ViewPager 26 android:id="@+id/preview_viewpager" 27 android:layout_width="match_parent" 28 android:layout_height="0dp" 29 android:layout_weight="1" 30 android:overScrollMode="never"/> 31 32 <FrameLayout 33 android:id="@+id/indicator_container" 34 android:layout_width="match_parent" 35 android:layout_height="@dimen/indicator_container_height" 36 android:layout_gravity="bottom"> 37 38 <com.android.wallpaper.widget.PageIndicator 39 android:id="@+id/page_indicator" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_gravity="center" /> 43 44 <FrameLayout 45 android:id="@+id/arrow_previous" 46 android:layout_width="@dimen/indicator_arrow_touch_area_size" 47 android:layout_height="@dimen/indicator_arrow_touch_area_size" 48 android:layout_gravity="center_vertical|left" 49 android:layout_marginStart="@dimen/indicator_arrow_container_margin_horizontal" 50 android:background="?android:attr/selectableItemBackgroundBorderless" 51 android:contentDescription="@string/previous_page_content_description" 52 android:visibility="gone" 53 tools:ignore="RtlHardcoded"> 54 55 <ImageView 56 android:layout_width="@dimen/indicator_arrow_size" 57 android:layout_height="@dimen/indicator_arrow_size" 58 android:layout_gravity="center" 59 android:contentDescription="@null" 60 android:tint="?android:attr/colorAccent" 61 android:src="@drawable/ic_arrow_back_24px" /> 62 </FrameLayout> 63 64 <FrameLayout 65 android:id="@+id/arrow_next" 66 android:layout_width="@dimen/indicator_arrow_touch_area_size" 67 android:layout_height="@dimen/indicator_arrow_touch_area_size" 68 android:layout_gravity="center_vertical|right" 69 android:layout_marginEnd="@dimen/indicator_arrow_container_margin_horizontal" 70 android:background="?android:attr/selectableItemBackgroundBorderless" 71 android:contentDescription="@string/next_page_content_description" 72 android:visibility="gone" 73 tools:ignore="RtlHardcoded"> 74 75 <ImageView 76 android:layout_width="@dimen/indicator_arrow_size" 77 android:layout_height="@dimen/indicator_arrow_size" 78 android:layout_gravity="center" 79 android:contentDescription="@null" 80 android:tint="?android:attr/colorAccent" 81 android:src="@drawable/ic_arrow_forward_24px" /> 82 </FrameLayout> 83 </FrameLayout> 84</LinearLayout>