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 | |
Grace Kloba | 50c241e | 2010-04-20 11:07:50 -0700 | [diff] [blame] | 19 | <com.android.browser.GeolocationPermissionsPrompt |
| 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 21 | android:layout_width="match_parent" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 22 | android:layout_height="wrap_content" |
| 23 | android:background="@drawable/geolocation_permissions_prompt_background" |
| 24 | android:visibility="gone"> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 25 | |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 26 | <!-- 'google.com wants to know your location' --> |
| 27 | <TextView android:id="@+id/message" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 28 | android:layout_width="match_parent" |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 30 | android:singleLine="true" |
| 31 | android:scrollHorizontally="true" |
| 32 | android:padding="6dip" |
| 33 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 34 | |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 35 | <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 Block | 8844d19 | 2009-09-29 13:14:41 +0100 | [diff] [blame] | 48 | |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 49 | <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 Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 58 | <LinearLayout |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 59 | style="?android:attr/buttonBarStyle" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 60 | android:layout_width="match_parent" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 61 | 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 Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 72 | android:layout_height="wrap_content" |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 73 | 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 Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 81 | </LinearLayout> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 82 | </LinearLayout> |
John Reck | 7c6e1c9 | 2011-06-30 11:55:55 -0700 | [diff] [blame^] | 83 | |
Grace Kloba | 50c241e | 2010-04-20 11:07:50 -0700 | [diff] [blame] | 84 | </com.android.browser.GeolocationPermissionsPrompt> |