blob: cdb25d26655b9f60b99c00df9b3b3e0c95d80532 [file] [log] [blame]
Steve Block2bc69912009-07-30 14:45:13 +01001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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 This is the layout for the Geolocation permissions prompt.
Steve Block2bc69912009-07-30 14:45:13 +010017-->
18
19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:fitsSystemWindows="true"
Romain Guy15b8ec62010-01-08 15:06:43 -080021 android:layout_width="match_parent"
Steve Block2bc69912009-07-30 14:45:13 +010022 android:layout_height="wrap_content">
23
24 <!-- Use an inner element as we can't show a hidden outermost element -->
25 <LinearLayout android:id="@+id/inner"
26 android:orientation="vertical"
Romain Guy15b8ec62010-01-08 15:06:43 -080027 android:layout_width="match_parent"
Steve Block2bc69912009-07-30 14:45:13 +010028 android:layout_height="wrap_content"
Steve Block9e026fc2009-10-01 12:20:11 +010029 android:background="@color/black"
30 android:paddingTop="1px"
Steve Block2bc69912009-07-30 14:45:13 +010031 android:visibility="gone">
32
Steve Block9e026fc2009-10-01 12:20:11 +010033 <!-- White line -->
34 <View
35 android:orientation="vertical"
Romain Guy15b8ec62010-01-08 15:06:43 -080036 android:layout_width="match_parent"
Steve Block9e026fc2009-10-01 12:20:11 +010037 android:layout_height="1px"
38 android:background="@color/white" />
Steve Block8844d192009-09-29 13:14:41 +010039
Steve Block9e026fc2009-10-01 12:20:11 +010040 <!-- Container for content -->
Steve Block2bc69912009-07-30 14:45:13 +010041 <LinearLayout
Steve Block9e026fc2009-10-01 12:20:11 +010042 android:orientation="vertical"
Romain Guy15b8ec62010-01-08 15:06:43 -080043 android:layout_width="match_parent"
44 android:layout_height="match_parent"
Steve Block9e026fc2009-10-01 12:20:11 +010045 android:background="@color/geolocation_permissions_prompt_background"
46 android:padding="6dip">
Steve Block2bc69912009-07-30 14:45:13 +010047
Steve Block9e026fc2009-10-01 12:20:11 +010048 <!-- 'google.com wants to know your location' -->
49 <TextView android:id="@+id/message"
Romain Guy15b8ec62010-01-08 15:06:43 -080050 android:layout_width="match_parent"
Steve Block9e026fc2009-10-01 12:20:11 +010051 android:layout_height="wrap_content"
52 android:textSize="14dip"
53 android:textColor="@color/black" />
54
55 <!-- Checkbox -->
56 <LinearLayout
57 android:orientation="horizontal"
Romain Guy15b8ec62010-01-08 15:06:43 -080058 android:layout_width="match_parent"
Steve Block9e026fc2009-10-01 12:20:11 +010059 android:layout_height="wrap_content">
60 <CheckBox android:id="@+id/remember"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content" />
63 <TextView
64 android:paddingLeft="4dip"
65 android:text="@string/geolocation_permissions_prompt_remember"
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:textSize="14dip"
69 android:textColor="@color/black" />
70 </LinearLayout>
71
72 <!-- Buttons -->
73 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -080074 android:layout_width="match_parent"
Steve Block9e026fc2009-10-01 12:20:11 +010075 android:layout_height="wrap_content">
76 <Button android:id="@+id/share_button"
77 android:text="@string/geolocation_permissions_prompt_share"
78 android:layout_weight="1"
79 android:layout_width="0dip"
80 android:layout_height="wrap_content" />
81 <Button android:id="@+id/dont_share_button"
82 android:text="@string/geolocation_permissions_prompt_dont_share"
83 android:layout_weight="1"
84 android:layout_width="0dip"
85 android:layout_height="wrap_content" />
86 </LinearLayout>
87
88 </LinearLayout>
Steve Block2bc69912009-07-30 14:45:13 +010089 </LinearLayout>
90</LinearLayout>