OSDN Git Service

Code drop from //branches/cupcake/...@124589
[android-x86/packages-apps-Browser.git] / res / layout / gears_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4  * Copyright 2008, The Android Open Source Project
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 -->
19
20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21   android:drawingCacheQuality="auto"
22   android:layout_width="fill_parent"
23   android:layout_height="wrap_content"
24   android:orientation="vertical"
25   android:padding="10dip"
26   android:background="@color/white">
27
28   <LinearLayout
29     android:layout_width="fill_parent"
30     android:layout_height="wrap_content"
31     android:orientation="vertical"
32     android:paddingBottom="10dip">
33
34     <LinearLayout
35       android:layout_width="fill_parent"
36       android:layout_height="wrap_content"
37       android:orientation="vertical">
38
39       <LinearLayout
40         android:layout_width="fill_parent"
41         android:layout_height="wrap_content"
42         android:orientation="horizontal">
43
44         <ImageView
45           android:id="@+id/icon"
46           android:paddingRight="10dip"
47           android:layout_width="wrap_content"
48           android:layout_height="wrap_content"
49           android:layout_centerHorizontal="true" />
50
51         <TextView
52           android:id="@+id/dialog_title"
53           android:layout_width="wrap_content"
54           android:layout_height="wrap_content"
55           android:layout_centerVertical="true"
56           android:gravity="center_vertical"
57           android:visibility="gone"
58           android:textSize="16dip"
59           android:textStyle="bold"
60           android:textColor="@color/black"/>
61
62         <TextView
63           android:id="@+id/dialog_message"
64           android:layout_width="wrap_content"
65           android:layout_height="wrap_content"
66           android:visibility="gone"
67           android:gravity="center_vertical"
68           android:textSize="13dip"
69           android:textColor="@color/black"/>
70
71       </LinearLayout>
72
73       <TextView
74         android:id="@+id/dialog_subtitle"
75         android:layout_width="wrap_content"
76         android:layout_height="wrap_content"
77         android:paddingTop="10dip"
78         android:gravity="center_vertical"
79         android:visibility="gone"
80         android:textSize="13dip"
81         android:textColor="@color/black"/>
82
83     </LinearLayout>
84
85   </LinearLayout>
86
87   <LinearLayout
88     android:id="@+id/panel_content"
89     android:layout_width="fill_parent"
90     android:layout_height="0dip"
91     android:layout_weight="1"/>
92
93   <RelativeLayout
94     android:background="@color/white"
95     android:layout_width="fill_parent"
96     android:layout_height="wrap_content"
97     android:paddingTop="10dip">
98
99     <Button
100       android:id="@+id/button_alwaysdeny"
101       android:layout_width="wrap_content"
102       android:layout_height="wrap_content"
103       android:layout_alignParentLeft="true"
104       style="@style/gears_button"
105       android:textSize="13dip"/>
106
107     <LinearLayout
108       android:layout_width="wrap_content"
109       android:layout_alignParentRight="true"
110       android:layout_height="wrap_content">
111
112       <Button
113         android:id="@+id/button_allow"
114         android:layout_width="wrap_content"
115         android:layout_height="wrap_content"
116         android:textSize="13dip"/>
117
118       <Button
119         android:id="@+id/button_deny"
120         android:layout_width="wrap_content"
121         android:layout_height="wrap_content"
122         android:textSize="13dip"/>
123
124     </LinearLayout>
125
126   </RelativeLayout>
127
128 </LinearLayout>