Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 1 | <?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 Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 17 | --> |
| 18 | |
Bijan Amirzada | 41242f2 | 2014-03-21 12:12:18 -0700 | [diff] [blame] | 19 | <com.android.browser.GeolocationPermissionsPrompt |
Grace Kloba | 50c241e | 2010-04-20 11:07:50 -0700 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Enrico Ros | 1f5a095 | 2014-11-18 20:15:48 -0800 | [diff] [blame] | 21 | android:background="@color/TabPassiveMessageBackground" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 22 | android:layout_width="match_parent" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 23 | android:layout_height="wrap_content" |
Enrico Ros | 1f5a095 | 2014-11-18 20:15:48 -0800 | [diff] [blame] | 24 | 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 Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 31 | |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 32 | <!-- 'google.com wants to know your location' --> |
| 33 | <TextView android:id="@+id/message" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 34 | android:layout_width="match_parent" |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 35 | android:layout_height="wrap_content" |
Enrico Ros | 1f5a095 | 2014-11-18 20:15:48 -0800 | [diff] [blame] | 36 | android:paddingBottom="4dp" |
| 37 | android:paddingLeft="16dp" |
| 38 | android:paddingRight="16dp" |
| 39 | android:paddingTop="16dp" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 40 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 41 | |
Enrico Ros | 1f5a095 | 2014-11-18 20:15:48 -0800 | [diff] [blame] | 42 | <CheckBox |
| 43 | android:id="@+id/remember" |
| 44 | android:layout_width="match_parent" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 45 | android:layout_height="wrap_content" |
Enrico Ros | 1f5a095 | 2014-11-18 20:15:48 -0800 | [diff] [blame] | 46 | android:layout_marginLeft="8dp" |
| 47 | android:layout_marginRight="8dp" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 48 | android:text="@string/geolocation_permissions_prompt_remember" |
Enrico Ros | 1f5a095 | 2014-11-18 20:15:48 -0800 | [diff] [blame] | 49 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
Steve Block | 8844d19 | 2009-09-29 13:14:41 +0100 | [diff] [blame] | 50 | |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 51 | <LinearLayout |
| 52 | android:layout_width="match_parent" |
| 53 | android:layout_height="wrap_content" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 54 | android:orientation="vertical" |
| 55 | android:divider="?android:attr/dividerHorizontal" |
| 56 | android:showDividers="beginning" |
Enrico Ros | 1f5a095 | 2014-11-18 20:15:48 -0800 | [diff] [blame] | 57 | android:layout_marginTop="8dp" |
| 58 | android:dividerPadding="16dip" > |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 59 | <LinearLayout |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 60 | style="?android:attr/buttonBarStyle" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 61 | android:layout_width="match_parent" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 62 | 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. Ajmera | 2e24124 | 2014-05-19 15:53:38 -0700 | [diff] [blame] | 72 | android:layout_width="wrap_content" |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 73 | android:layout_height="wrap_content" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 74 | android:text="@string/geolocation_permissions_prompt_dont_share" /> |
| 75 | <Button |
Axesh R. Ajmera | 2e24124 | 2014-05-19 15:53:38 -0700 | [diff] [blame] | 76 | 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 Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 83 | android:id="@+id/share_button" |
| 84 | style="?android:attr/buttonBarButtonStyle" |
| 85 | android:layout_weight="1" |
Axesh R. Ajmera | 2e24124 | 2014-05-19 15:53:38 -0700 | [diff] [blame] | 86 | android:layout_width="wrap_content" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 87 | android:layout_height="wrap_content" |
| 88 | android:text="@string/geolocation_permissions_prompt_share" /> |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 89 | </LinearLayout> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 90 | </LinearLayout> |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame] | 91 | |
Bijan Amirzada | 41242f2 | 2014-03-21 12:12:18 -0700 | [diff] [blame] | 92 | </com.android.browser.GeolocationPermissionsPrompt> |