1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:orientation="vertical" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent"> 26 27 <EditText 28 android:id="@+id/text_box" 29 android:inputType="text" 30 android:maxLines="1" 31 android:lines="1" 32 android:layout_height="wrap_content" 33 android:layout_width="match_parent" 34 android:hint="Keyword" /> 35 36 <Button 37 android:id="@+id/get_ad_button" 38 android:layout_height="wrap_content" 39 android:layout_width="wrap_content" 40 style="?android:attr/buttonBarButtonStyle" 41 android:text="@string/get_ad" /> 42 43 <EditText 44 android:id="@+id/schedule_training_text_box" 45 android:inputType="text" 46 android:maxLines="1" 47 android:lines="1" 48 android:layout_height="wrap_content" 49 android:layout_width="match_parent" 50 android:hint="Population" /> 51 <EditText 52 android:id="@+id/schedule_interval_text_box" 53 android:inputType="numberDecimal" 54 android:maxLines="1" 55 android:lines="1" 56 android:layout_height="wrap_content" 57 android:layout_width="match_parent" 58 android:hint="Recurring training interval (in seconds)" /> 59 60 <Button 61 android:id="@+id/schedule_training_button" 62 android:layout_height="wrap_content" 63 android:layout_width="wrap_content" 64 style="?android:attr/buttonBarButtonStyle" 65 android:text="@string/schedule_training" /> 66 67 <Button 68 android:id="@+id/cancel_training_button" 69 android:layout_height="wrap_content" 70 android:layout_width="wrap_content" 71 style="?android:attr/buttonBarButtonStyle" 72 android:text="@string/cancel_training" /> 73 74 <EditText 75 android:id="@+id/report_conversion_text_box" 76 android:inputType="text" 77 android:maxLines="1" 78 android:lines="1" 79 android:layout_height="wrap_content" 80 android:layout_width="match_parent" 81 android:hint="SourceAdId" /> 82 83 <Button 84 android:id="@+id/report_conversion_button" 85 android:layout_height="wrap_content" 86 android:layout_width="wrap_content" 87 style="?android:attr/buttonBarButtonStyle" 88 android:text="@string/report_conversion" /> 89 90 <SurfaceView 91 android:id="@+id/rendered_view" 92 android:layout_width="200dp" 93 android:layout_height="200dp" /> 94 </LinearLayout> 95</ScrollView>