1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 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:layout_width="match_parent"
20              android:layout_height="match_parent"
21              android:gravity="top|center_horizontal"
22              android:orientation="vertical">
23    <!-- Low contrast, with slightly transparent text -->
24    <Button
25        android:id="@+id/low_contrast_button1"
26        android:text="Bad Button"
27        android:layout_width="wrap_content"
28        android:layout_height="48dp"
29        android:layout_margin="8dp"
30        android:layout_marginLeft="0dp"
31        android:background="@android:color/holo_green_dark"
32        android:textColor="#fe0099cc" />
33    <!-- ATF bypasses transparent views / colors unless image is available. -->
34    <Button
35        android:id="@+id/low_contrast_button2"
36        android:layout_width="wrap_content"
37        android:layout_height="48dp"
38        android:background="@android:color/holo_green_dark"
39        android:text="Button B"
40        android:textColor="@android:color/holo_blue_dark"/>
41    <EditText
42        android:id="@+id/low_contrast_edit_text"
43        android:layout_width="match_parent"
44        android:layout_height="wrap_content"
45        android:ems="10"
46        android:inputType="textPersonName"
47        android:minHeight="48dp"
48        android:text="Edit B"
49        android:background="@android:color/holo_green_dark"
50        android:textColor="@android:color/holo_blue_dark"
51    />
52    <CheckBox
53        android:id="@+id/low_contrast_check_box"
54        android:layout_width="wrap_content"
55        android:layout_height="wrap_content"
56        android:background="@android:color/holo_green_dark"
57        android:minHeight="48dp"
58        android:text="CheckBox B"
59        android:textColor="@android:color/holo_blue_dark"/>
60</LinearLayout>
61