blob: b42b3f9706938069522162ccb19f0aef5fbd6b79 [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
Bijan Amirzada41242f22014-03-21 12:12:18 -070019<com.android.browser.GeolocationPermissionsPrompt
Grace Kloba50c241e2010-04-20 11:07:50 -070020 xmlns:android="http://schemas.android.com/apk/res/android"
Enrico Ros1f5a0952014-11-18 20:15:48 -080021 android:background="@color/TabPassiveMessageBackground"
Romain Guy15b8ec62010-01-08 15:06:43 -080022 android:layout_width="match_parent"
John Reck7c6e1c92011-06-30 11:55:55 -070023 android:layout_height="wrap_content"
Enrico Ros1f5a0952014-11-18 20:15:48 -080024 android:orientation="vertical">
25
26 <!-- Cosmetic separator -->
27 <View
28 android:layout_width="match_parent"
29 android:layout_height="1dp"
30 android:background="@color/TabPassiveMessageLine" />
Steve Block2bc69912009-07-30 14:45:13 +010031
John Reck7c6e1c92011-06-30 11:55:55 -070032 <!-- 'google.com wants to know your location' -->
33 <TextView android:id="@+id/message"
Romain Guy15b8ec62010-01-08 15:06:43 -080034 android:layout_width="match_parent"
Steve Block2bc69912009-07-30 14:45:13 +010035 android:layout_height="wrap_content"
Enrico Ros1f5a0952014-11-18 20:15:48 -080036 android:paddingBottom="4dp"
37 android:paddingLeft="16dp"
38 android:paddingRight="16dp"
39 android:paddingTop="16dp"
John Reck7c6e1c92011-06-30 11:55:55 -070040 android:textAppearance="?android:attr/textAppearanceSmall" />
Steve Block2bc69912009-07-30 14:45:13 +010041
Enrico Ros1f5a0952014-11-18 20:15:48 -080042 <CheckBox
43 android:id="@+id/remember"
44 android:layout_width="match_parent"
John Reck7c6e1c92011-06-30 11:55:55 -070045 android:layout_height="wrap_content"
Enrico Ros1f5a0952014-11-18 20:15:48 -080046 android:layout_marginLeft="8dp"
47 android:layout_marginRight="8dp"
John Reck7c6e1c92011-06-30 11:55:55 -070048 android:text="@string/geolocation_permissions_prompt_remember"
Enrico Ros1f5a0952014-11-18 20:15:48 -080049 android:textAppearance="?android:attr/textAppearanceSmall" />
Steve Block8844d192009-09-29 13:14:41 +010050
John Reck7c6e1c92011-06-30 11:55:55 -070051 <LinearLayout
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
John Reck7c6e1c92011-06-30 11:55:55 -070054 android:orientation="vertical"
55 android:divider="?android:attr/dividerHorizontal"
56 android:showDividers="beginning"
Enrico Ros1f5a0952014-11-18 20:15:48 -080057 android:layout_marginTop="8dp"
58 android:dividerPadding="16dip" >
Steve Block2bc69912009-07-30 14:45:13 +010059 <LinearLayout
John Reck7c6e1c92011-06-30 11:55:55 -070060 style="?android:attr/buttonBarStyle"
Romain Guy15b8ec62010-01-08 15:06:43 -080061 android:layout_width="match_parent"
John Reck7c6e1c92011-06-30 11:55:55 -070062 android:layout_height="wrap_content"
63 android:orientation="horizontal"
64 android:paddingLeft="2dip"
65 android:paddingRight="2dip"
66 android:measureWithLargestChild="true"
67 android:background="@null">
68 <Button
69 android:id="@+id/dont_share_button"
70 style="?android:attr/buttonBarButtonStyle"
71 android:layout_weight="1"
Axesh R. Ajmera2e241242014-05-19 15:53:38 -070072 android:layout_width="wrap_content"
Steve Block9e026fc2009-10-01 12:20:11 +010073 android:layout_height="wrap_content"
John Reck7c6e1c92011-06-30 11:55:55 -070074 android:text="@string/geolocation_permissions_prompt_dont_share" />
75 <Button
Axesh R. Ajmera2e241242014-05-19 15:53:38 -070076 android:id="@+id/share_for_limited_time_button"
77 style="?android:attr/buttonBarButtonStyle"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_weight="1"
81 android:text="@string/geolocation_permissions_prompt_share_for_limited_time"/>
82 <Button
John Reck7c6e1c92011-06-30 11:55:55 -070083 android:id="@+id/share_button"
84 style="?android:attr/buttonBarButtonStyle"
85 android:layout_weight="1"
Axesh R. Ajmera2e241242014-05-19 15:53:38 -070086 android:layout_width="wrap_content"
John Reck7c6e1c92011-06-30 11:55:55 -070087 android:layout_height="wrap_content"
88 android:text="@string/geolocation_permissions_prompt_share" />
Steve Block9e026fc2009-10-01 12:20:11 +010089 </LinearLayout>
Steve Block2bc69912009-07-30 14:45:13 +010090 </LinearLayout>
John Reck7c6e1c92011-06-30 11:55:55 -070091
Bijan Amirzada41242f22014-03-21 12:12:18 -070092</com.android.browser.GeolocationPermissionsPrompt>