1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="match_parent"
19    android:layout_marginTop="@dimen/widget_margin_top"
20    android:layout_marginBottom="@dimen/widget_margin_bottom"
21    android:layout_marginLeft="@dimen/widget_margin_left"
22    android:layout_marginRight="@dimen/widget_margin_right"
23    android:padding="1dp"
24    android:background="#fff">
25
26    <LinearLayout
27        android:orientation="vertical"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:paddingLeft="12dp"
31        android:paddingTop="12dp"
32        android:paddingBottom="12dp"
33        android:paddingRight="12dp"
34        android:layout_gravity="center"
35        android:background="#fff">
36
37        <TextView
38            android:id="@+id/title"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:gravity="top|left"
42            android:layout_marginBottom="10dp"
43            android:fontFamily="sans-serif"
44            android:textSize="20sp"
45            android:text="@string/widget_name"
46            android:freezesText="true"/>
47
48        <TextView
49            android:id="@+id/instruction"
50            android:layout_width="wrap_content"
51            android:layout_height="wrap_content"
52            android:layout_marginBottom="20dp"
53            android:fontFamily="sans-serif-light"
54            android:textSize="16sp"
55            android:freezesText="true"/>
56
57        <TextView
58            android:id="@+id/data"
59            android:layout_width="wrap_content"
60            android:layout_height="wrap_content"
61            android:layout_marginBottom="18dp"
62            android:layout_gravity="center_horizontal"
63            android:fontFamily="sans-serif-light"
64            android:textSize="16sp"/>
65
66        <ListView
67            android:id="@+id/list"
68            android:layout_width="match_parent"
69            android:layout_height="0dp"
70            android:layout_weight="1"
71            android:layout_marginBottom="12dp"
72            android:padding="1dp"
73            android:background="#fff"
74            android:visibility="gone"/>
75
76        <LinearLayout
77            android:layout_width="wrap_content"
78            android:layout_height="wrap_content"
79            android:layout_gravity="bottom|center_horizontal"
80            android:orientation="horizontal">
81            <Button
82                android:id="@+id/fail"
83                android:layout_marginRight="8dp"
84                android:layout_width="wrap_content"
85                android:layout_height="wrap_content"
86                android:minWidth="100dp"
87                android:text="@string/widget_fail" />
88            <Button
89                android:id="@+id/pass"
90                android:layout_width="wrap_content"
91                android:layout_height="wrap_content"
92                android:minWidth="100dp"
93                android:text="@string/widget_pass" />
94        </LinearLayout>
95
96    </LinearLayout>
97</FrameLayout>
98