blob: 1920c05ceae52f79256eaa8140d3f519c6320eb6 [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
Grace Kloba50c241e2010-04-20 11:07:50 -070019<com.android.browser.GeolocationPermissionsPrompt
20 xmlns:android="http://schemas.android.com/apk/res/android"
Romain Guy15b8ec62010-01-08 15:06:43 -080021 android:layout_width="match_parent"
John Reck7c6e1c92011-06-30 11:55:55 -070022 android:layout_height="wrap_content"
23 android:background="@drawable/geolocation_permissions_prompt_background"
24 android:visibility="gone">
Steve Block2bc69912009-07-30 14:45:13 +010025
John Reck7c6e1c92011-06-30 11:55:55 -070026 <!-- 'google.com wants to know your location' -->
27 <TextView android:id="@+id/message"
Romain Guy15b8ec62010-01-08 15:06:43 -080028 android:layout_width="match_parent"
Steve Block2bc69912009-07-30 14:45:13 +010029 android:layout_height="wrap_content"
John Reck7c6e1c92011-06-30 11:55:55 -070030 android:singleLine="true"
31 android:scrollHorizontally="true"
32 android:padding="6dip"
33 android:textAppearance="?android:attr/textAppearanceSmall" />
Steve Block2bc69912009-07-30 14:45:13 +010034
John Reck7c6e1c92011-06-30 11:55:55 -070035 <CheckBox android:id="@+id/remember"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_below="@id/message"
39 android:layout_alignLeft="@id/message" />
40 <TextView
41 android:paddingLeft="4dip"
42 android:text="@string/geolocation_permissions_prompt_remember"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:textAppearance="?android:attr/textAppearanceSmall"
46 android:layout_alignBaseline="@id/remember"
47 android:layout_toRightOf="@id/remember" />
Steve Block8844d192009-09-29 13:14:41 +010048
John Reck7c6e1c92011-06-30 11:55:55 -070049 <LinearLayout
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:layout_below="@id/remember"
53 android:orientation="vertical"
54 android:divider="?android:attr/dividerHorizontal"
55 android:showDividers="beginning"
56 android:dividerPadding="16dip"
57 android:background="@null">
Steve Block2bc69912009-07-30 14:45:13 +010058 <LinearLayout
John Reck7c6e1c92011-06-30 11:55:55 -070059 style="?android:attr/buttonBarStyle"
Romain Guy15b8ec62010-01-08 15:06:43 -080060 android:layout_width="match_parent"
John Reck7c6e1c92011-06-30 11:55:55 -070061 android:layout_height="wrap_content"
62 android:orientation="horizontal"
63 android:paddingLeft="2dip"
64 android:paddingRight="2dip"
65 android:measureWithLargestChild="true"
66 android:background="@null">
67 <Button
68 android:id="@+id/dont_share_button"
69 style="?android:attr/buttonBarButtonStyle"
70 android:layout_weight="1"
71 android:layout_width="0dip"
Steve Block9e026fc2009-10-01 12:20:11 +010072 android:layout_height="wrap_content"
John Reck7c6e1c92011-06-30 11:55:55 -070073 android:text="@string/geolocation_permissions_prompt_dont_share" />
74 <Button
75 android:id="@+id/share_button"
76 style="?android:attr/buttonBarButtonStyle"
77 android:layout_weight="1"
78 android:layout_width="0dip"
79 android:layout_height="wrap_content"
80 android:text="@string/geolocation_permissions_prompt_share" />
Steve Block9e026fc2009-10-01 12:20:11 +010081 </LinearLayout>
Steve Block2bc69912009-07-30 14:45:13 +010082 </LinearLayout>
John Reck7c6e1c92011-06-30 11:55:55 -070083
Grace Kloba50c241e2010-04-20 11:07:50 -070084</com.android.browser.GeolocationPermissionsPrompt>