<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
    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="wrap_content">

    <androidx.appcompat.widget.LinearLayoutCompat
        android:id="@+id/about_sheet"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <androidx.core.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent">

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

                <com.google.android.material.bottomsheet.BottomSheetDragHandleView
                    android:id="@+id/bottomSheetDragHandleView"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent" />

                <ImageView
                    android:id="@+id/dolphin_logo"
                    android:layout_width="192dp"
                    android:layout_height="192dp"
                    android:layout_marginStart="@dimen/spacing_xtralarge"
                    android:clickable="true"
                    android:contentDescription="@string/about_dolphin_image"
                    android:focusable="true"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="@+id/about_linear_layout"
                    app:srcCompat="@drawable/ic_dolphin" />

                <androidx.appcompat.widget.LinearLayoutCompat
                    android:id="@+id/about_linear_layout"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginHorizontal="@dimen/spacing_xtralarge"
                    android:layout_marginBottom="@dimen/spacing_large"
                    android:orientation="vertical"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toEndOf="@+id/dolphin_logo"
                    app:layout_constraintTop_toBottomOf="@+id/bottomSheetDragHandleView">

                    <com.google.android.material.textview.MaterialTextView
                        android:id="@+id/name_text"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="@string/about_dolphin"
                        android:textAppearance="@style/TextAppearance.AppCompat.Display3"
                        android:textColor="?attr/colorOnSurface"
                        android:textAlignment="viewStart" />

                    <com.google.android.material.textview.MaterialTextView
                        android:id="@+id/version_text"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/spacing_large"
                        android:textAppearance="@style/TextAppearance.AppCompat.Large"
                        android:textColor="?attr/colorOnSurface"
                        android:textIsSelectable="true"
                        android:textAlignment="viewStart"
                        tools:text="5.0-XXXXX" />

                    <com.google.android.material.textview.MaterialTextView
                        android:id="@+id/branch_text"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/spacing_large"
                        android:textColor="?attr/colorOnSurface"
                        android:textIsSelectable="true"
                        android:textAlignment="viewStart"
                        tools:text="Branch:\nmaster" />

                    <com.google.android.material.textview.MaterialTextView
                        android:id="@+id/revision_text"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/spacing_large"
                        android:textColor="?attr/colorOnSurface"
                        android:textIsSelectable="true"
                        android:textAlignment="viewStart"
                        tools:text="Revision:\nf4f94396e94dad9cd4d7d7fb6defa096966a4ab8" />

                    <com.google.android.material.textview.MaterialTextView
                        android:id="@+id/about_dolphin_text"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/spacing_large"
                        android:focusable="false"
                        android:text="@string/about_dolphin_description"
                        android:textColor="?attr/colorOnSurface"
                        android:textAlignment="viewStart" />

                    <androidx.constraintlayout.widget.ConstraintLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/spacing_large">

                        <com.google.android.material.divider.MaterialDivider
                            android:id="@+id/divider_1"
                            android:layout_width="1dp"
                            android:layout_height="0dp"
                            android:focusable="false"
                            app:layout_constraintBottom_toBottomOf="parent"
                            app:layout_constraintEnd_toStartOf="@+id/github_text"
                            app:layout_constraintStart_toEndOf="@+id/website_text"
                            app:layout_constraintTop_toTopOf="parent" />

                        <com.google.android.material.divider.MaterialDivider
                            android:id="@+id/divider_2"
                            android:layout_width="1dp"
                            android:layout_height="0dp"
                            android:focusable="false"
                            app:layout_constraintBottom_toBottomOf="parent"
                            app:layout_constraintEnd_toStartOf="@+id/support_text"
                            app:layout_constraintStart_toEndOf="@+id/github_text"
                            app:layout_constraintTop_toTopOf="parent" />

                        <com.google.android.material.textview.MaterialTextView
                            android:id="@+id/website_text"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/about_website"
                            android:textColor="?attr/colorOnSurface"
                            app:layout_constraintBottom_toBottomOf="parent"
                            app:layout_constraintEnd_toStartOf="@+id/github_text"
                            app:layout_constraintStart_toStartOf="parent"
                            app:layout_constraintTop_toTopOf="parent" />


                        <com.google.android.material.textview.MaterialTextView
                            android:id="@+id/github_text"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/about_github"
                            android:textColor="?attr/colorOnSurface"
                            app:layout_constraintBottom_toBottomOf="parent"
                            app:layout_constraintEnd_toEndOf="parent"
                            app:layout_constraintStart_toStartOf="parent"
                            app:layout_constraintTop_toTopOf="parent" />

                        <com.google.android.material.textview.MaterialTextView
                            android:id="@+id/support_text"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/about_support"
                            android:textColor="?attr/colorOnSurface"
                            app:layout_constraintBottom_toBottomOf="parent"
                            app:layout_constraintEnd_toEndOf="parent"
                            app:layout_constraintStart_toEndOf="@+id/github_text"
                            app:layout_constraintTop_toTopOf="parent" />

                    </androidx.constraintlayout.widget.ConstraintLayout>

                </androidx.appcompat.widget.LinearLayoutCompat>

            </androidx.constraintlayout.widget.ConstraintLayout>

        </androidx.core.widget.NestedScrollView>

    </androidx.appcompat.widget.LinearLayoutCompat>

</androidx.coordinatorlayout.widget.CoordinatorLayout>
