Home | History | Annotate | Download | only in layout
      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.
     17 -->
     18 
     19 <com.android.browser.GeolocationPermissionsPrompt
     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     <!-- 'google.com wants to know your location' -->
     27     <TextView android:id="@+id/message"
     28         android:layout_width="match_parent"
     29         android:layout_height="wrap_content"
     30         android:singleLine="true"
     31         android:scrollHorizontally="true"
     32         android:padding="6dip"
     33         android:textAppearance="?android:attr/textAppearanceSmall" />
     34 
     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" />
     48 
     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">
     58         <LinearLayout
     59             style="?android:attr/buttonBarStyle"
     60             android:layout_width="match_parent"
     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"
     72                 android:layout_height="wrap_content"
     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" />
     81         </LinearLayout>
     82     </LinearLayout>
     83 
     84 </com.android.browser.GeolocationPermissionsPrompt>
     85