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" |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 21 | android:fitsSystemWindows="true" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 22 | android:layout_width="match_parent" |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 23 | android:layout_height="wrap_content"> |
| 24 | |
| 25 | <!-- Use an inner element as we can't show a hidden outermost element --> |
| 26 | <LinearLayout android:id="@+id/inner" |
| 27 | android:orientation="vertical" |
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" |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 30 | android:background="@color/black" |
| 31 | android:paddingTop="1px" |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 32 | android:visibility="gone"> |
| 33 | |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 34 | <!-- White line --> |
| 35 | <View |
| 36 | android:orientation="vertical" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 37 | android:layout_width="match_parent" |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 38 | android:layout_height="1px" |
| 39 | android:background="@color/white" /> |
Steve Block | 8844d19 | 2009-09-29 13:14:41 +0100 | [diff] [blame] | 40 | |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 41 | <!-- Container for content --> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 42 | <LinearLayout |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 43 | android:orientation="vertical" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="match_parent" |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 46 | android:background="@color/geolocation_permissions_prompt_background" |
| 47 | android:padding="6dip"> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 48 | |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 49 | <!-- 'google.com wants to know your location' --> |
| 50 | <TextView android:id="@+id/message" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 51 | android:layout_width="match_parent" |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 52 | android:layout_height="wrap_content" |
| 53 | android:textSize="14dip" |
| 54 | android:textColor="@color/black" /> |
| 55 | |
| 56 | <!-- Checkbox --> |
| 57 | <LinearLayout |
| 58 | android:orientation="horizontal" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 59 | android:layout_width="match_parent" |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 60 | android:layout_height="wrap_content"> |
| 61 | <CheckBox android:id="@+id/remember" |
| 62 | android:layout_width="wrap_content" |
| 63 | android:layout_height="wrap_content" /> |
| 64 | <TextView |
| 65 | android:paddingLeft="4dip" |
| 66 | android:text="@string/geolocation_permissions_prompt_remember" |
| 67 | android:layout_width="wrap_content" |
| 68 | android:layout_height="wrap_content" |
| 69 | android:textSize="14dip" |
| 70 | android:textColor="@color/black" /> |
| 71 | </LinearLayout> |
| 72 | |
| 73 | <!-- Buttons --> |
| 74 | <LinearLayout |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 75 | android:layout_width="match_parent" |
Steve Block | 9e026fc | 2009-10-01 12:20:11 +0100 | [diff] [blame] | 76 | android:layout_height="wrap_content"> |
| 77 | <Button android:id="@+id/share_button" |
| 78 | android:text="@string/geolocation_permissions_prompt_share" |
| 79 | android:layout_weight="1" |
| 80 | android:layout_width="0dip" |
| 81 | android:layout_height="wrap_content" /> |
| 82 | <Button android:id="@+id/dont_share_button" |
| 83 | android:text="@string/geolocation_permissions_prompt_dont_share" |
| 84 | android:layout_weight="1" |
| 85 | android:layout_width="0dip" |
| 86 | android:layout_height="wrap_content" /> |
| 87 | </LinearLayout> |
| 88 | |
| 89 | </LinearLayout> |
Steve Block | 2bc6991 | 2009-07-30 14:45:13 +0100 | [diff] [blame] | 90 | </LinearLayout> |
Grace Kloba | 50c241e | 2010-04-20 11:07:50 -0700 | [diff] [blame] | 91 | </com.android.browser.GeolocationPermissionsPrompt> |