<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright 2024 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
  ~
  ~      https://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.
  ~
  ~
  -->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <LinearLayout
        android:id="@+id/exercise_routes_permission_dialog"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingHorizontal="@dimen/spacing_large"
        android:paddingTop="@dimen/spacing_normal"
        android:paddingBottom="@dimen/spacing_large">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="?attr/alertDialogTitleGravity"
            android:orientation="vertical">

            <ImageView
                android:id="@+id/dialog_icon"
                android:layout_width="@dimen/app_icon_size"
                android:layout_height="@dimen/app_icon_size"
                android:layout_marginTop="@dimen/spacing_large"
                android:layout_marginBottom="@dimen/spacing_normal" />

            <TextView
                android:id="@+id/dialog_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:maxLines="4"
                android:paddingBottom="@dimen/spacing_small"
                android:singleLine="false"
                android:text="@string/route_permissions_label"
                android:textAlignment="?attr/alertDialogTitleTextAlignment"
                android:textAppearance="?attr/textAppearanceHeadline4" />
        </LinearLayout>


        <TextView
            android:id="@+id/dialog_message"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingBottom="@dimen/spacing_normal"
            android:textAppearance="?attr/textAppearanceSummary" />

        <RadioGroup
            android:id="@+id/radio_group_route_permission"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <RadioButton
                android:id="@+id/radio_button_always_allow"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:minHeight="?android:attr/listPreferredItemHeight"
                android:paddingStart="?android:attr/listPreferredItemPaddingStart"
                android:paddingEnd="0dp"
                android:text="@string/route_permissions_always_allow"
                android:textAppearance="?attr/textAppearanceSummary"
                android:textColor="?android:attr/textColorPrimary" />

            <RadioButton
                android:id="@+id/radio_button_ask"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:minHeight="?android:attr/listPreferredItemHeight"
                android:paddingStart="?android:attr/listPreferredItemPaddingStart"
                android:paddingEnd="0dp"
                android:text="@string/route_permissions_ask"
                android:textAppearance="?attr/textAppearanceSummary"
                android:textColor="?android:attr/textColorPrimary" />

            <RadioButton
                android:id="@+id/radio_button_revoke"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:minHeight="?android:attr/listPreferredItemHeight"
                android:paddingStart="?android:attr/listPreferredItemPaddingStart"
                android:paddingEnd="0dp"
                android:text="@string/route_permissions_deny"
                android:textAppearance="?attr/textAppearanceSummary"
                android:textColor="?android:attr/textColorPrimary" />

        </RadioGroup>
    </LinearLayout>

</ScrollView>