1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright 2019 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 17<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" 23 tools:ignore="UnusedAttribute"> 24 25 <TextView 26 android:text="@string/viewpager2" 27 android:textStyle="bold" 28 android:textDirection="locale" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layout_marginTop="@dimen/spacer_large" 32 android:layout_marginLeft="@dimen/spacer_small" 33 android:layout_marginRight="@dimen/spacer_small"/> 34 35 <androidx.viewpager2.widget.ViewPager2 36 android:id="@+id/viewPager" 37 android:layout_width="match_parent" 38 android:layout_height="0dp" 39 android:layout_weight="1"/> 40 41 <View 42 android:layout_width="match_parent" 43 android:layout_height="1dp" 44 android:background="?android:attr/listDivider"/> 45 46 <LinearLayout 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:orientation="vertical" 50 android:layout_margin="@dimen/spacer_small"> 51 52 <TextView 53 android:text="@string/toolbox" 54 android:textStyle="bold" 55 android:textDirection="locale" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:layout_margin="@dimen/spacer_small"/> 59 60 <LinearLayout 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:orientation="horizontal"> 64 65 <TextView 66 android:layout_margin="@dimen/spacer_small" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:text="@string/choose_a_page"/> 70 71 <Spinner 72 android:id="@+id/itemSpinner" 73 android:layout_margin="@dimen/spacer_small" 74 android:layout_width="0dp" 75 android:layout_weight="1" 76 android:layout_height="wrap_content"/> 77 </LinearLayout> 78 79 <LinearLayout 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:orientation="horizontal"> 83 84 <TextView 85 android:layout_margin="@dimen/spacer_small" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:text="@string/use_diff_util"/> 89 90 <CheckBox 91 android:id="@+id/useDiffUtil" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:layout_margin="@dimen/spacer_small" 95 android:checked="true" /> 96 </LinearLayout> 97 98 <LinearLayout 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:orientation="horizontal" 102 android:gravity="center"> 103 104 <Button 105 android:id="@+id/buttonGoTo" 106 android:layout_width="0dp" 107 android:layout_height="wrap_content" 108 android:layout_weight="1" 109 android:layout_margin="@dimen/spacer_small" 110 android:text="@string/go_to_page"/> 111 112 <Button 113 android:id="@+id/buttonRemove" 114 android:layout_width="0dp" 115 android:layout_height="wrap_content" 116 android:layout_weight="1" 117 android:layout_margin="@dimen/spacer_small" 118 android:text="@string/remove_page"/> 119 120 <Button 121 android:id="@+id/buttonAddBefore" 122 android:layout_width="0dp" 123 android:layout_height="wrap_content" 124 android:layout_weight="1" 125 android:layout_margin="@dimen/spacer_small" 126 android:text="@string/add_new_before"/> 127 128 <Button 129 android:id="@+id/buttonAddAfter" 130 android:layout_width="0dp" 131 android:layout_height="wrap_content" 132 android:layout_weight="1" 133 android:layout_margin="@dimen/spacer_small" 134 android:text="@string/add_new_after"/> 135 </LinearLayout> 136 </LinearLayout> 137</LinearLayout>