| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2015 Google Inc. All rights reserved. |
| 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. |
| --> |
| |
| <androidx.wear.widget.BoxInsetLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| tools:deviceIds="wear" |
| android:background="@color/white" |
| tools:context="com.example.android.wearable.runtimepermissions.RequestPermissionOnPhoneActivity" |
| android:paddingStart="30dp" |
| android:paddingTop="18dp" |
| android:paddingRight="18dp"> |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:onClick="onClickPermissionPhoneStorage" |
| android:orientation="vertical" |
| app:boxedEdges="all"> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/permission_message_activity_request_permission_on_phone" |
| android:textSize="16sp" |
| android:paddingRight="6dp" |
| android:textColor="#000000"/> |
| |
| <androidx.legacy.widget.Space |
| android:layout_width="18dp" |
| android:layout_height="18dp"/> |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:gravity="center"> |
| |
| <android.support.wearable.view.CircledImageView |
| android:layout_width="40dp" |
| android:layout_height="40dp" |
| app:circle_radius="20dp" |
| app:circle_color="#0086D4" |
| android:src="@drawable/ic_cc_open_on_phone"/> |
| |
| <androidx.legacy.widget.Space |
| android:layout_width="8dp" |
| android:layout_height="8dp"/> |
| |
| <TextView |
| android:id="@+id/openOnPhone" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAlignment="center" |
| android:textSize="16sp" |
| android:text="@string/open_on_phone_message_activity_request_permission_on_phone" |
| android:textColor="#0086D4"/> |
| </LinearLayout> |
| </LinearLayout> |
| </androidx.wear.widget.BoxInsetLayout> |