<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ SPDX-FileCopyrightText: 2025 microG Project Team
  ~ SPDX-License-Identifier: Apache-2.0
  -->

<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <data>

        <import type="android.view.View" />

        <variable
            name="data"
            type="org.microg.gms.fido.core.ui.AuthenticatorActivityFragmentData" />

    </data>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:padding="24dp">

        <ImageView
            android:id="@+id/sign_in_key_back"
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:scaleType="fitXY"
            android:layout_gravity="end"
            android:src="@drawable/ic_fido_close_btn" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="24dp"
            android:paddingBottom="8dp"
            android:gravity="center"
            android:textSize="24dp"
            android:text="@string/fido_sign_in_selection_title"
            android:textAppearance="@style/TextAppearance.AppCompat.Title"
            tools:text="@string/fido_sign_in_selection_title" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textSize="18dp"
            android:text="@{@string/fido_sign_in_selection_continue(data.appName)}"
            android:textAppearance="@style/TextAppearance.AppCompat.Medium"
            tools:text="@string/fido_sign_in_selection_continue" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/sign_in_key_recycler"
            android:layout_marginVertical="16dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

    </LinearLayout>
</layout>
