1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 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<RelativeLayout 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 tools:context=".ProxyOverrideActivity"> 23 24 <LinearLayout 25 android:id="@+id/proxy_override_buttons" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:layout_alignParentTop="true" 29 android:orientation="vertical"> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:orientation="horizontal" 35 android:layout_gravity="center_vertical" 36 android:weightSum="2"> 37 38 <Button 39 android:id="@+id/proxy_override_button" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:layout_weight="1" 43 android:text="@string/proxy_override_set" 44 android:enabled="true"/> 45 46 <CheckBox 47 tools:visibility="visible" 48 android:id="@+id/proxy_override_reverse_bypass_checkbox" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_weight="1" 52 android:visibility="gone" 53 android:checked="false" 54 android:text="@string/proxy_override_reverse_bypass" 55 android:textSize="18sp"/> 56 57 </LinearLayout> 58 59 <LinearLayout 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:orientation="horizontal" 63 android:weightSum="2"> 64 65 <Button 66 android:id="@+id/proxy_override_load_url_button" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:layout_weight="1" 70 android:text="@string/proxy_override_load_url" 71 android:enabled="false"/> 72 73 <Button 74 android:id="@+id/proxy_override_load_bypass_button" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:layout_weight="1" 78 android:text="@string/proxy_override_load_bypass_url" 79 android:enabled="false"/> 80 81 </LinearLayout> 82 83 </LinearLayout> 84 85 <TextView 86 android:id="@+id/proxy_override_textview" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:layout_alignParentBottom="true" 90 android:textSize="22sp" 91 android:layout_marginTop="12dp" 92 android:layout_marginLeft="8dp" 93 android:layout_marginRight="8dp"/> 94 95 <WebView 96 android:id="@+id/proxy_override_webview" 97 android:layout_width="match_parent" 98 android:layout_height="match_parent" 99 android:layout_below="@id/proxy_override_buttons" 100 android:layout_above="@id/proxy_override_textview"/> 101 102</RelativeLayout> 103