1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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<ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/content" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:fadeScrollbars="false"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="vertical"> 28 29 <TextView 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:text="Control Status Bar Insets"/> 33 34 <LinearLayout 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:orientation="horizontal"> 38 39 <Button 40 android:id="@+id/show_status_bar_insets" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_margin="10dp" 44 android:text="Show Status Bar Insets" 45 android:textSize="30sp"/> 46 47 <Button 48 android:id="@+id/hide_status_bar_insets" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_margin="10dp" 52 android:text="Hide Status Bar Insets" 53 android:textSize="30sp"/> 54 55 </LinearLayout> 56 57 <TextView 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:text="Control Navigation Bar Insets"/> 61 62 <LinearLayout 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:orientation="horizontal"> 66 67 <Button 68 android:id="@+id/show_nav_bar_insets" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_margin="10dp" 72 android:text="Show Navigation Bar Insets" 73 android:textSize="30sp"/> 74 75 <Button 76 android:id="@+id/hide_nav_bar_insets" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_margin="10dp" 80 android:text="Hide Navigation Bar Insets" 81 android:textSize="30sp"/> 82 83 </LinearLayout> 84 85 <TextView 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:text="Control System Bar Insets (both Status and Navigation)"/> 89 90 <LinearLayout 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:orientation="horizontal"> 94 95 <Button 96 android:id="@+id/show_system_bar_insets" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:layout_margin="10dp" 100 android:text="Show System Bar Insets" 101 android:textSize="30sp"/> 102 103 <Button 104 android:id="@+id/hide_system_bar_insets" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_margin="10dp" 108 android:text="Hide System Bar Insets" 109 android:textSize="30sp"/> 110 111 </LinearLayout> 112 113 <TextView 114 android:layout_width="wrap_content" 115 android:layout_height="wrap_content" 116 android:text="Set System Bar Behavior"/> 117 118 <LinearLayout 119 android:layout_width="match_parent" 120 android:layout_height="wrap_content" 121 android:orientation="horizontal"> 122 123 <Button 124 android:id="@+id/show_bars_by_touch" 125 android:layout_width="wrap_content" 126 android:layout_height="wrap_content" 127 android:layout_margin="10dp" 128 android:text="Show By Touch" 129 android:textSize="30sp"/> 130 131 <Button 132 android:id="@+id/show_bars_by_swipe" 133 android:layout_width="wrap_content" 134 android:layout_height="wrap_content" 135 android:layout_margin="10dp" 136 android:text="Show By Swipe" 137 android:textSize="30sp"/> 138 139 <Button 140 android:id="@+id/show_transient_bars_by_swipe" 141 android:layout_width="wrap_content" 142 android:layout_height="wrap_content" 143 android:layout_margin="10dp" 144 android:text="Show Transient By Swipe" 145 android:textSize="30sp"/> 146 147 </LinearLayout> 148 149 <TextView 150 android:layout_width="wrap_content" 151 android:layout_height="wrap_content" 152 android:text="Toggle System Bar Color"/> 153 154 <LinearLayout 155 android:layout_width="match_parent" 156 android:layout_height="wrap_content" 157 android:orientation="horizontal"> 158 159 <Button 160 android:id="@+id/color_status_bars" 161 android:layout_width="wrap_content" 162 android:layout_height="wrap_content" 163 android:layout_margin="10dp" 164 android:text="Toggle Status Bar Color" 165 android:textSize="30sp"/> 166 167 <Button 168 android:id="@+id/color_navigation_bars" 169 android:layout_width="wrap_content" 170 android:layout_height="wrap_content" 171 android:layout_margin="10dp" 172 android:text="Toggle Nav Bar Color" 173 android:textSize="30sp"/> 174 175 </LinearLayout> 176 177 </LinearLayout> 178</ScrollView>