You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.9 KiB
60 lines
2.9 KiB
<?xml version="1.0" encoding="utf-8"?><!--
|
|
Copyright (C) 2017 The Android Open Source Project
|
|
|
|
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_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/permission_needed_bg"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/permissions_needed_metadata_content_margin_top"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/permissions_needed_metadata_warning_icon_margin_sides"
|
|
android:layout_marginRight="@dimen/permissions_needed_metadata_warning_icon_margin_sides"
|
|
android:layout_marginTop="@dimen/permissions_needed_metadata_warning_icon_margin_top"
|
|
android:src="@drawable/material_ic_warning_white_24" />
|
|
|
|
<TextView
|
|
android:id="@+id/permission_needed_explanation"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/permissions_needed_metadata_description_margin_end"
|
|
android:layout_marginRight="@dimen/permissions_needed_metadata_description_margin_end"
|
|
android:text="@string/permission_needed_explanation"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="@dimen/abc_text_size_body_1_material" />
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/permission_needed_allow_access_button"
|
|
style="?attr/borderlessButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end"
|
|
android:layout_marginEnd="@dimen/permissions_needed_metadata_allow_access_button_margin_end"
|
|
android:layout_marginRight="@dimen/permissions_needed_metadata_allow_access_button_margin_end"
|
|
android:layout_marginTop="@dimen/permissions_needed_metadata_allow_access_button_margin_top"
|
|
android:text="@string/permission_needed_allow_access_button_label"
|
|
android:textColor="?android:attr/textColorPrimary" />
|
|
|
|
</LinearLayout>
|