1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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. 17--> 18 19<com.android.browser.PermissionsPrompt 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:background="@drawable/geolocation_permissions_prompt_background" 24 android:visibility="gone"> 25 26 <TextView android:id="@+id/message" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:singleLine="true" 30 android:scrollHorizontally="true" 31 android:padding="6dip" 32 android:textAppearance="?android:attr/textAppearanceSmall" /> 33 34 <!-- TODO: Implement remember --> 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 android:visibility="invisible" /> 41 <TextView 42 android:paddingLeft="4dip" 43 android:text="@string/permissions_prompt_remember" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:textAppearance="?android:attr/textAppearanceSmall" 47 android:layout_alignBaseline="@id/remember" 48 android:layout_toRightOf="@id/remember" 49 android:visibility="invisible" /> 50 51 <LinearLayout 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:layout_below="@id/remember" 55 android:orientation="vertical" 56 android:divider="?android:attr/dividerHorizontal" 57 android:showDividers="beginning" 58 android:dividerPadding="16dip" 59 android:background="@null"> 60 <LinearLayout 61 style="?android:attr/buttonBarStyle" 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:orientation="horizontal" 65 android:paddingLeft="2dip" 66 android:paddingRight="2dip" 67 android:measureWithLargestChild="true" 68 android:background="@null"> 69 <Button 70 android:id="@+id/deny_button" 71 style="?android:attr/buttonBarButtonStyle" 72 android:layout_weight="1" 73 android:layout_width="0dip" 74 android:layout_height="wrap_content" 75 android:text="@string/permissions_prompt_deny" /> 76 <Button 77 android:id="@+id/allow_button" 78 style="?android:attr/buttonBarButtonStyle" 79 android:layout_weight="1" 80 android:layout_width="0dip" 81 android:layout_height="wrap_content" 82 android:text="@string/permissions_prompt_allow" /> 83 </LinearLayout> 84 </LinearLayout> 85 86</com.android.browser.PermissionsPrompt> 87