Xml文件  |  128行  |  4.63 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2018 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:orientation="vertical"
    android:id="@+id/app_permission_root">

    <androidx.core.widget.NestedScrollView
        android:id="@+id/nested_scroll_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clipChildren="false">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            style="@style/AppPermission">

            <include layout="@layout/header_large" />

            <LinearLayout
                style="@style/AppPermissionSelection">

                <TextView
                    android:id="@+id/permission_message"
                    style="@style/AppPermissionMessage"/>

                <RadioGroup
                    android:id="@+id/radiogroup"
                    android:animateLayoutChanges="true"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" >

                    <RadioButton
                        android:id="@+id/allow_radio_button"
                        android:text="@string/app_permission_button_allow_always"
                        style="@style/AppPermissionRadioButton" />

                    <RadioButton
                        android:id="@+id/foreground_only_radio_button"
                        android:text="@string/app_permission_button_allow_foreground"
                        style="@style/AppPermissionRadioButton" />

                    <RadioButton
                        android:id="@+id/deny_radio_button"
                        android:text="@string/app_permission_button_deny"
                        style="@style/AppPermissionRadioButton" />

                </RadioGroup>

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal">

                    <TextView
                        android:id="@+id/permission_details"
                        style="@style/AppPermissionDetails"/>

                    <LinearLayout
                        android:id="@+id/two_target_divider"
                        style="@style/AppPermissionTwoTargetDivider">
                        <View
                            android:layout_width="1dp"
                            android:layout_height="match_parent"
                            android:background="@drawable/list_divider_dark" />
                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/widget_frame"
                        style="@style/AppPermissionWidgetFrame"/>

                </LinearLayout>

            </LinearLayout>

            <LinearLayout
                style="@style/AppPermissionFooter">

                <View
                    android:id="@+id/divider"
                    style="@style/AppPermissionFooterDivider"/>

                <TextView
                    android:id="@+id/usage_summary"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    style="@style/AppPermissionFooterText"/>

                <TextView
                    android:id="@+id/footer_link_1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:clickable="true"
                    style="@style/AppPermissionFooterLink"/>

                <TextView
                    android:id="@+id/footer_link_2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:clickable="true"
                    style="@style/AppPermissionFooterLink"/>

            </LinearLayout>

        </LinearLayout>

    </androidx.core.widget.NestedScrollView>

</LinearLayout>