1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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 18<androidx.constraintlayout.widget.ConstraintLayout 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=".FileUploadActivity"> 23 24 25 <LinearLayout 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:orientation="vertical"> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="horizontal"> 34 35 <TextView 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:text="@string/server" 39 android:textSize="15dp" 40 android:textStyle="bold" /> 41 42 <EditText 43 android:id="@+id/ft_uri" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:textSize="15dp" /> 47 </LinearLayout> 48 49 <Button 50 android:id="@+id/browse_btn" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:layout_marginTop="10dp" 54 android:text="@string/browse" 55 android:textAllCaps="false" /> 56 57 <Button 58 android:id="@+id/upload_btn" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:layout_marginTop="10dp" 62 android:text="@string/upload" 63 android:textAllCaps="false" /> 64 65 <LinearLayout 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:orientation="horizontal"> 69 70 <TextView 71 android:text="@string/file_name" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:textSize="15dp" 75 android:textStyle="bold"/> 76 <TextView 77 android:id="@+id/file_name" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:textSize="15dp" 81 android:textStyle="bold"/> 82 </LinearLayout> 83 84 <TextView 85 android:id="@+id/upload_file_result" 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content" 88 android:text="@string/result" 89 android:scrollbars="vertical" 90 android:layout_marginTop="20dp" 91 android:textSize="15dp" 92 android:textStyle="bold" /> 93 94 </LinearLayout> 95</androidx.constraintlayout.widget.ConstraintLayout> 96