forked from upstream-mirrors/OpenTracks
When an activity starts, prompts the user (if necessary) for permission
to access the service.
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2010 Google Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:background="@drawable/list_bar"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:paddingLeft="10dp"
|
||||
android:text="@string/send_google_title"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="20sp"/>
|
||||
<ScrollView
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="5dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="fill_parent">
|
||||
<TableLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:stretchColumns="1">
|
||||
|
||||
<!-- Google Maps -->
|
||||
<TableRow android:id="@+id/send_google_maps_row">
|
||||
<ImageView
|
||||
android:src="@drawable/maps_icon"
|
||||
style="@style/SendGoogleImageView"/>
|
||||
<CheckBox
|
||||
android:id="@+id/send_google_maps"
|
||||
android:text="@string/send_google_maps"
|
||||
style="@style/SendGoogleCheckBox"/>
|
||||
</TableRow>
|
||||
<TableRow android:id="@+id/send_google_maps_option_row">
|
||||
<RadioGroup
|
||||
android:layout_column="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_width="0dp">
|
||||
<RadioButton
|
||||
android:id="@+id/send_google_new_map"
|
||||
android:text="@string/send_google_new_map"
|
||||
style="@style/SendGoogleRadioButton"/>
|
||||
<RadioButton
|
||||
android:id="@+id/send_google_existing_map"
|
||||
android:text="@string/send_google_existing_map"
|
||||
style="@style/SendGoogleRadioButton"/>
|
||||
</RadioGroup>
|
||||
</TableRow>
|
||||
|
||||
<!-- Google Fusion Tables -->
|
||||
<TableRow android:id="@+id/send_google_fusion_tables_row">
|
||||
<ImageView
|
||||
android:src="@drawable/googledocs_icon"
|
||||
style="@style/SendGoogleImageView"/>
|
||||
<CheckBox
|
||||
android:id="@+id/send_google_fusion_tables"
|
||||
android:text="@string/send_google_fusion_tables"
|
||||
style="@style/SendGoogleCheckBox"/>
|
||||
</TableRow>
|
||||
|
||||
<!-- Google Docs -->
|
||||
<TableRow android:id="@+id/send_google_docs_row">
|
||||
<ImageView
|
||||
android:src="@drawable/googledocs_icon"
|
||||
style="@style/SendGoogleImageView"/>
|
||||
<CheckBox
|
||||
android:id="@+id/send_google_docs"
|
||||
android:text="@string/send_google_docs"
|
||||
style="@style/SendGoogleCheckBox"/>
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
</ScrollView>
|
||||
<LinearLayout style="@style/ButtonLayout">
|
||||
<LinearLayout style="@style/ButtonSpacer"/>
|
||||
<Button
|
||||
android:id="@+id/send_google_send_now"
|
||||
android:layout_gravity="left"
|
||||
android:text="@string/send_google_send_now"
|
||||
style="@style/Button"/>
|
||||
<Button
|
||||
android:id="@+id/send_google_cancel"
|
||||
android:layout_gravity="right"
|
||||
android:text="@string/generic_cancel"
|
||||
style="@style/Button"/>
|
||||
<LinearLayout style="@style/ButtonSpacer"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user