<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".ui.infoScreen.InfoFragment">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView
            android:id="@+id/infoTitleImg"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_marginEnd="8dp"
            android:contentDescription="@string/placeholder"
            android:src="@drawable/ic_menu_entries"
            app:layout_constraintBottom_toBottomOf="@+id/infoTitle"
            app:layout_constraintEnd_toStartOf="@+id/infoTitle"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/infoTitle" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/infoTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="12dp"
            android:text="@string/app_name"
            android:textColor="@color/themeLight"
            android:textSize="48sp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/infoTitleImg"
            app:layout_constraintTop_toTopOf="parent" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/infoVersion"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:text="@string/info_version"
            android:textColor="@color/themeLight"
            android:textSize="18sp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/infoTitle" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/infoSubtitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:text="@string/info_subtitle"
            android:textSize="18sp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/infoVersion" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/infoGithub"
            style="@style/InfoButton"
            android:layout_marginTop="8dp"
            android:text="@string/info_github"
            app:icon="@drawable/ic_github"
            app:layout_constraintEnd_toStartOf="@+id/infoFdroid"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/infoSubtitle" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/infoFdroid"
            style="@style/InfoButton"
            android:text="@string/info_fdroid"
            app:icon="@drawable/ic_fdroid"
            app:layout_constraintBaseline_toBaselineOf="@+id/infoGithub"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/infoGithub" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/infoBmc"
            style="@style/InfoButton"
            android:layout_marginTop="8dp"
            android:text="@string/info_bmc"
            app:icon="@drawable/ic_bmc"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/infoGithub" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/infoThanks"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="8dp"
            android:layout_marginTop="8dp"
            android:layout_marginEnd="8dp"
            android:gravity="center"
            android:text="@string/info_thanks"
            android:textSize="16sp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/infoBmc" />

        <TextView
            android:id="@+id/infoWarranty"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:layout_marginBottom="16dp"
            android:gravity="center"
            android:text="@string/info_warranty"
            android:textSize="16sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="@+id/infoThanks"
            app:layout_constraintStart_toStartOf="@+id/infoThanks"
            app:layout_constraintTop_toBottomOf="@+id/infoThanks" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
