• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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
17<LinearLayout
18     xmlns:android="http://schemas.android.com/apk/res/android"
19     android:layout_width="fill_parent"
20     android:layout_height="fill_parent"
21     android:orientation="vertical"
22>
23
24    <!-- Mimic a dialog title.  Necessary since the dialog is actually an activity, so the normal
25        dialog title construction code is not available. -->
26    <LinearLayout
27         android:layout_width="match_parent"
28         android:layout_height="wrap_content"
29         android:orientation="vertical"
30    >
31        <com.android.internal.widget.DialogTitle
32            style="?android:attr/windowTitleStyle"
33            android:singleLine="true"
34            android:ellipsize="end"
35            android:layout_width="match_parent"
36            android:layout_height="64dip"
37            android:layout_marginLeft="16dip"
38            android:layout_marginRight="16dip"
39            android:gravity="center_vertical|left"
40            android:text="@string/research_feedback_dialog_title" />
41        <View
42            android:layout_width="match_parent"
43            android:layout_height="2dip"
44            android:background="@android:color/holo_blue_light" />
45    </LinearLayout>
46
47    <EditText
48        android:id="@+id/research_feedback_contents"
49        android:layout_height="wrap_content"
50        android:layout_width="match_parent"
51        android:layout_gravity="fill_horizontal|center_vertical"
52        android:layout_marginLeft="8dip"
53        android:layout_marginRight="8dip"
54        android:layout_marginBottom="8dip"
55        android:layout_marginTop="8dip"
56        android:lines="2"
57        android:hint="@string/research_feedback_hint"
58        android:inputType="textMultiLine"
59        android:imeOptions="flagNoFullscreen"
60    >
61        <requestFocus />
62    </EditText>
63
64    <CheckBox
65        android:id="@+id/research_feedback_include_history"
66        android:layout_height="wrap_content"
67        android:layout_width="match_parent"
68        android:layout_marginBottom="8dip"
69        android:checked="true"
70        android:text="@string/research_feedback_include_history_label"
71    />
72
73    <LinearLayout
74        android:layout_width="match_parent"
75        android:layout_height="wrap_content"
76        android:orientation="vertical"
77        android:divider="?android:attr/dividerHorizontal"
78        android:showDividers="beginning"
79        android:dividerPadding="0dip"
80    >
81        <LinearLayout
82            style="?android:attr/buttonBarStyle"
83            android:layout_width="match_parent"
84            android:layout_height="wrap_content"
85            android:orientation="horizontal"
86            android:measureWithLargestChild="true"
87        >
88            <Button
89                android:id="@+id/research_feedback_cancel_button"
90                android:layout_width="0dip"
91                android:layout_gravity="left"
92                android:layout_weight="1"
93                android:maxLines="2"
94                style="?android:attr/buttonBarButtonStyle"
95                android:textSize="14sp"
96                android:text="@string/research_feedback_cancel"
97                android:layout_height="wrap_content"
98            />
99            <Button
100                android:id="@+id/research_feedback_send_button"
101                android:layout_width="0dip"
102                android:layout_gravity="right"
103                android:layout_weight="1"
104                android:maxLines="2"
105                style="?android:attr/buttonBarButtonStyle"
106                android:textSize="14sp"
107                android:text="@string/research_feedback_send"
108                android:layout_height="wrap_content"
109            />
110        </LinearLayout>
111    </LinearLayout>
112</LinearLayout>
113