xref: /aosp_15_r20/external/cronet/components/cronet/android/sample/res/layout/main_fragment.xml (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3    android:orientation="vertical"
4    android:layout_width="match_parent"
5    android:layout_height="match_parent">
6
7    <EditText
8        android:id="@+id/url_edittext"
9        android:layout_width="match_parent"
10        android:layout_height="wrap_content"
11        android:ems="10"
12        android:hint="url"
13        android:inputType="text" />
14
15    <LinearLayout
16        android:layout_width="match_parent"
17        android:layout_height="wrap_content"
18        android:orientation="horizontal">
19
20        <Button
21            android:id="@+id/start_button"
22            android:layout_width="wrap_content"
23            android:layout_height="wrap_content"
24            android:layout_weight="1"
25            android:textSize="10sp"
26            android:text="Start" />
27
28        <Button
29            android:id="@+id/reset_button"
30            android:layout_width="wrap_content"
31            android:layout_height="wrap_content"
32            android:layout_weight="1"
33            android:textSize="10sp"
34            android:text="Reset Engine" />
35
36        <Button
37            android:id="@+id/clear_button"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:layout_weight="1"
41            android:textSize="10sp"
42            android:text="Clear Response" />
43
44    </LinearLayout>
45
46    <ScrollView
47        android:id="@+id/SCROLLER_ID"
48        android:layout_width="match_parent"
49        android:layout_height="match_parent"
50        android:scrollbars="vertical"
51        android:fillViewport="true">
52        <TextView
53            android:id="@+id/result_textview"
54            android:layout_width="match_parent"
55            android:layout_height="match_parent"
56            android:layout_weight="1" />
57    </ScrollView>
58</LinearLayout>