1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2015 Google Inc. All rights reserved.
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       http://www.apache.org/licenses/LICENSE-2.0
8  Unless required by applicable law or agreed to in writing, software
9  distributed under the License is distributed on an "AS IS" BASIS,
10  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11  See the License for the specific language governing permissions and
12  limitations under the License.
13  -->
14
15<RelativeLayout
16    xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_width="match_parent"
18    android:layout_height="match_parent"
19    android:paddingLeft="@dimen/activity_horizontal_margin"
20    android:paddingRight="@dimen/activity_horizontal_margin"
21    android:paddingTop="@dimen/activity_vertical_margin"
22    android:paddingBottom="@dimen/activity_vertical_margin"
23    android:background="#4c9699">
24
25<Button
26    android:layout_width="wrap_content"
27    android:layout_height="wrap_content"
28    android:background="@android:color/transparent"
29    android:stateListAnimator="@null"
30    android:text="@string/no_thanks_activity_wear_permission_request"
31    android:id="@+id/deny_permission_request"
32    android:onClick="onClickDenyPermissionRequest"
33    android:textColor="#ffffff"
34    android:layout_alignParentBottom="true"
35    android:layout_alignParentLeft="true"
36    android:layout_alignParentStart="true" />
37
38<Button
39    android:layout_width="wrap_content"
40    android:layout_height="wrap_content"
41    android:background="@android:color/transparent"
42    android:stateListAnimator="@null"
43    android:text="@string/continue_activity_wear_permission_request"
44    android:id="@+id/approve_permission_request"
45    android:onClick="onClickApprovePermissionRequest"
46    android:layout_alignTop="@+id/deny_permission_request"
47    android:layout_alignParentRight="true"
48    android:layout_alignParentEnd="true"
49    android:textStyle="bold"
50    android:textColor="#ffffff" />
51
52<TextView
53    android:layout_width="wrap_content"
54    android:layout_height="wrap_content"
55    android:textAppearance="?android:attr/textAppearanceLarge"
56    android:text="@string/main_message_activity_wear_permission_request"
57    android:id="@+id/mainMessageTextView"
58    android:textColor="#ffffff"
59    android:textStyle="bold"
60    android:layout_below="@+id/imageView"
61    android:layout_alignParentLeft="true"
62    android:layout_alignParentStart="true"
63    android:layout_marginTop="117dp" />
64<!--TODO: R.string.dialog_message_activity_main -->
65<TextView
66    android:layout_width="wrap_content"
67    android:layout_height="wrap_content"
68    android:textAppearance="?android:attr/textAppearanceMedium"
69    android:text="@string/details_message_activity_wear_permission_request"
70    android:id="@+id/detailsTextView"
71    android:textColor="#ffffff"
72    android:layout_below="@+id/mainMessageTextView"
73    android:layout_alignParentLeft="true"
74    android:layout_alignParentStart="true" />
75
76<ImageView
77    android:layout_width="wrap_content"
78    android:layout_height="wrap_content"
79    android:id="@+id/imageView"
80    android:src="@drawable/ic_hardware_watch"
81    android:layout_alignParentTop="true"
82    android:layout_centerHorizontal="true"
83    android:layout_marginTop="60dp" />
84
85</RelativeLayout>
86