<?xml version="1.0" encoding="utf-8"?><!--
 Nextcloud Talk application

 @author Tim Krüger
 Copyright (C) 2022 Tim Krüger
 Copyright (C) 2022 Nextcloud GmbH

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
<com.yarolegovich.mp.MaterialPreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:apc="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/guest_access_settings"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <com.yarolegovich.mp.MaterialPreferenceCategory
        android:id="@+id/guest_access_category"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:animateLayoutChanges="true"
        apc:cardBackgroundColor="@color/bg_default"
        apc:cardElevation="0dp"
        apc:mpc_title="@string/nc_guest_access">

        <com.yarolegovich.mp.MaterialSwitchPreference
            android:id="@+id/guest_access_allow_switch"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            apc:mp_default_value="false"
            apc:mp_key="guest_access_allowed"
            apc:mp_summary="@string/nc_guest_access_allow_summary"
            apc:mp_title="@string/nc_guest_access_allow_title" />

        <com.yarolegovich.mp.MaterialSwitchPreference
            android:id="@+id/guest_access_password_switch"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:visibility="gone"
            apc:mp_default_value="false"
            apc:mp_key="guest_access_password"
            apc:mp_summary="@string/nc_guest_access_password_summary"
            apc:mp_title="@string/nc_guest_access_password_title"
            tools:visibility="visible" />

        <com.yarolegovich.mp.MaterialStandardPreference
            android:id="@+id/guest_access_copy_url"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:visibility="gone"
            apc:mp_icon="@drawable/ic_share_variant"
            apc:mp_icon_tint="@color/grey_600"
            apc:mp_title="@string/nc_guest_access_share_link"
            tools:visibility="visible" >

        </com.yarolegovich.mp.MaterialStandardPreference>

        <com.yarolegovich.mp.MaterialStandardPreference
            android:id="@+id/guest_access_resend_invitations"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="gone"
            apc:mp_icon="@drawable/ic_email"
            apc:mp_icon_tint="@color/grey_600"
            apc:mp_title="@string/nc_guest_access_resend_invitations"
            tools:visibility="visible" />

    </com.yarolegovich.mp.MaterialPreferenceCategory>

</com.yarolegovich.mp.MaterialPreferenceScreen>