xref: /aosp_15_r20/cts/tests/accessibilityservice/res/layout/end_to_end_test.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2
3<!-- Copyright (C) 2010 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19              android:fitsSystemWindows="true"
20              android:layout_width="fill_parent"
21              android:layout_height="fill_parent"
22              android:gravity="center"
23              android:orientation="vertical">
24
25    <ListView android:id="@+id/listview"
26              android:layout_width="fill_parent"
27              android:layout_height="wrap_content">
28    </ListView>
29
30    <TextView android:id="@+id/labelOne"
31        android:text="@string/text_input_blah"
32        android:layout_width="wrap_content"
33        android:layout_height="wrap_content">
34    </TextView>
35
36    <TextView android:id="@+id/labelTwo"
37        android:text="@string/text_input_blah"
38        android:layout_width="wrap_content"
39        android:layout_height="wrap_content">
40    </TextView>
41
42    <EditText android:id="@+id/edittext"
43              android:text="@string/text_input_blah"
44              android:layout_height="wrap_content"
45              android:accessibilityHeading="true"
46              android:layout_width="fill_parent"
47              android:accessibilityTraversalAfter="@+id/buttonWithTooltip">
48    </EditText>
49
50    <LinearLayout android:id="@+id/containerView"
51        android:contentDescription="@string/container_desc"
52        android:layout_width="fill_parent"
53        android:layout_height="wrap_content"
54        android:gravity="center">
55        <LinearLayout android:id="@+id/adsView"
56            android:contentDescription="@string/ads_desc"
57            android:accessibilityDataSensitive="yes"
58            android:layout_width="fill_parent"
59            android:layout_height="wrap_content"
60            android:gravity="center">
61            <LinearLayout android:id="@+id/innerContainerView"
62                android:contentDescription="@string/inner_container_desc"
63                android:layout_width="fill_parent"
64                android:layout_height="wrap_content"
65                android:gravity="center">
66                <Button android:id="@+id/innerView"
67                    android:contentDescription="@string/inner_desc"
68                    android:text="@string/inner_title"
69                    android:layout_width="wrap_content"
70                    android:layout_height="wrap_content"
71                    android:layout_marginRight="60dp"
72                    android:bufferType="normal">
73                </Button>
74            </LinearLayout>
75        </LinearLayout>
76    </LinearLayout>
77
78    <ScrollView
79        android:id="@+id/scrollParent"
80        android:layout_width="match_parent"
81        android:layout_height="wrap_content">
82
83        <LinearLayout
84            android:layout_width="match_parent"
85            android:layout_height="wrap_content"
86            android:orientation="vertical">
87
88            <LinearLayout android:id="@+id/buttonLayout"
89                      android:layout_width="fill_parent"
90                      android:layout_height="wrap_content"
91                      android:gravity="center">
92                <Button android:id="@+id/button"
93                        android:text="@string/button_title"
94                        android:accessibilityPaneTitle="@string/paneTitle"
95                        android:layout_width="wrap_content"
96                        android:layout_height="wrap_content"
97                        android:layout_marginRight="60dp"
98                        android:bufferType="normal">
99                </Button>
100                <Button android:id="@id/buttonWithTooltip"
101                        android:text="@string/button_title"
102                        android:supplementalDescription="@string/foo_bar_baz"
103                        android:tooltipText="@string/button_tooltip"
104                        android:layout_width="wrap_content"
105                        android:layout_height="wrap_content"
106                        android:bufferType="normal"
107                        android:accessibilityTraversalBefore="@id/edittext">
108                </Button>
109            </LinearLayout>
110
111            <LinearLayout  android:id="@+id/buttonTargetGrandparent"
112                android:layout_width="fill_parent"
113                android:layout_height="wrap_content"
114                android:gravity="center">
115                <LinearLayout  android:id="@+id/buttonTargetParent"
116                    android:layout_width="fill_parent"
117                    android:layout_height="fill_parent"
118                    android:gravity="center">
119                    <Button android:id="@+id/buttonTarget"
120                        android:text="@string/button_title"
121                        android:layout_width="wrap_content"
122                        android:layout_height="wrap_content">
123                    </Button>
124                </LinearLayout>
125            </LinearLayout>
126
127            <LinearLayout android:id="@+id/autoImportantLinearLayout"
128                          android:layout_width="fill_parent"
129                          android:layout_height="wrap_content"
130                          android:gravity="center">
131            </LinearLayout>
132            <android.accessibilityservice.cts.utils.ProviderCustomView
133                android:id="@+id/autoImportantProviderView"
134                android:layout_width="fill_parent"
135                android:layout_height="wrap_content">
136            </android.accessibilityservice.cts.utils.ProviderCustomView>
137        </LinearLayout>
138    </ScrollView>
139</LinearLayout>
140