• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
23        android:orientation="vertical"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:paddingTop="@dimen/scrollview_padding_top">
27
28        <EditText
29            android:id="@+id/text_box"
30            android:inputType="text"
31            android:maxLines="1"
32            android:lines="1"
33            android:layout_height="wrap_content"
34            android:layout_width="match_parent"
35            android:hint="Keyword" />
36
37        <Button
38            android:id="@+id/get_ad_button"
39            android:layout_height="wrap_content"
40            android:layout_width="wrap_content"
41            style="?android:attr/buttonBarButtonStyle"
42            android:text="@string/get_ad" />
43
44        <EditText
45            android:id="@+id/schedule_training_text_box"
46            android:inputType="text"
47            android:maxLines="1"
48            android:lines="1"
49            android:layout_height="wrap_content"
50            android:layout_width="match_parent"
51            android:hint="Population" />
52
53        <EditText
54            android:id="@+id/schedule_interval_text_box"
55            android:inputType="numberDecimal"
56            android:maxLines="1"
57            android:lines="1"
58            android:layout_height="wrap_content"
59            android:layout_width="match_parent"
60            android:hint="Recurring training interval (in seconds)" />
61
62        <Button
63            android:id="@+id/schedule_training_button"
64            android:layout_height="wrap_content"
65            android:layout_width="wrap_content"
66            style="?android:attr/buttonBarButtonStyle"
67            android:text="@string/schedule_training" />
68
69        <Button
70            android:id="@+id/cancel_training_button"
71            android:layout_height="wrap_content"
72            android:layout_width="wrap_content"
73            style="?android:attr/buttonBarButtonStyle"
74            android:text="@string/cancel_training" />
75
76        <EditText
77            android:id="@+id/report_conversion_text_box"
78            android:inputType="text"
79            android:maxLines="1"
80            android:lines="1"
81            android:layout_height="wrap_content"
82            android:layout_width="match_parent"
83            android:hint="SourceAdId" />
84
85        <Button
86            android:id="@+id/report_conversion_button"
87            android:layout_height="wrap_content"
88            android:layout_width="wrap_content"
89            style="?android:attr/buttonBarButtonStyle"
90            android:text="@string/report_conversion" />
91
92        <ViewSwitcher
93            android:id="@+id/view_switcher"
94            android:layout_height="wrap_content"
95            android:layout_width="match_parent" >
96            <SurfaceView
97                android:id="@+id/rendered_view"
98                android:layout_width="200dp"
99                android:layout_height="200dp" />
100
101            <TextView
102                android:id="@+id/message_box"
103                android:layout_width="match_parent"
104                android:layout_height="wrap_content"
105                android:minLines="20"
106                android:scrollHorizontally="true"
107                android:background="@drawable/border" />
108
109        </ViewSwitcher>
110    </LinearLayout>
111</ScrollView>
112