| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Copyright (C) 2018 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. |
| --> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <androidx.viewpager.widget.ViewPager |
| android:id="@+id/preview_viewpager" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1" |
| android:overScrollMode="never"/> |
| |
| <FrameLayout |
| android:id="@+id/indicator_container" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/indicator_container_height" |
| android:layout_gravity="bottom"> |
| |
| <com.android.wallpaper.widget.PageIndicator |
| android:id="@+id/page_indicator" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" /> |
| |
| <FrameLayout |
| android:id="@+id/arrow_previous" |
| android:layout_width="@dimen/indicator_arrow_touch_area_size" |
| android:layout_height="@dimen/indicator_arrow_touch_area_size" |
| android:layout_gravity="center_vertical|left" |
| android:layout_marginStart="@dimen/indicator_arrow_container_margin_horizontal" |
| android:background="?android:attr/selectableItemBackgroundBorderless" |
| android:contentDescription="@string/previous_page_content_description" |
| android:visibility="gone" |
| tools:ignore="RtlHardcoded"> |
| |
| <ImageView |
| android:layout_width="@dimen/indicator_arrow_size" |
| android:layout_height="@dimen/indicator_arrow_size" |
| android:layout_gravity="center" |
| android:contentDescription="@null" |
| android:tint="?android:attr/colorAccent" |
| android:src="@drawable/ic_arrow_back_24px" /> |
| </FrameLayout> |
| |
| <FrameLayout |
| android:id="@+id/arrow_next" |
| android:layout_width="@dimen/indicator_arrow_touch_area_size" |
| android:layout_height="@dimen/indicator_arrow_touch_area_size" |
| android:layout_gravity="center_vertical|right" |
| android:layout_marginEnd="@dimen/indicator_arrow_container_margin_horizontal" |
| android:background="?android:attr/selectableItemBackgroundBorderless" |
| android:contentDescription="@string/next_page_content_description" |
| android:visibility="gone" |
| tools:ignore="RtlHardcoded"> |
| |
| <ImageView |
| android:layout_width="@dimen/indicator_arrow_size" |
| android:layout_height="@dimen/indicator_arrow_size" |
| android:layout_gravity="center" |
| android:contentDescription="@null" |
| android:tint="?android:attr/colorAccent" |
| android:src="@drawable/ic_arrow_forward_24px" /> |
| </FrameLayout> |
| </FrameLayout> |
| </LinearLayout> |