<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/bottom_sheet_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    app:behavior_peekHeight="auto">

    <View
        android:layout_width="@dimen/dimen32dp"
        android:layout_height="@dimen/dimen6dp"
        android:layout_gravity="center_horizontal"
        android:layout_marginBottom="@dimen/dimen8dp"
        android:background="@drawable/bottom_sheet_handle"
        android:backgroundTint="?attr/primaryTextColor" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="@dimen/dimen16dp">

        <!-- App Logo -->
        <com.google.android.material.card.MaterialCardView
            style="?attr/materialCardViewFilledStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            app:cardCornerRadius="@dimen/dimen16dp">

            <ImageView
                android:id="@+id/appLogo"
                android:layout_width="@dimen/dimen72dp"
                android:layout_height="@dimen/dimen72dp"
                android:contentDescription="@string/appName"
                android:src="@drawable/gitnex" />

        </com.google.android.material.card.MaterialCardView>

        <!-- App Name and Version -->
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="@dimen/dimen6dp"
            android:text="@string/appName"
            android:textColor="?attr/primaryTextColor"
            android:textSize="@dimen/dimen24sp" />

        <com.google.android.material.card.MaterialCardView
            style="?attr/materialCardViewFilledStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="@dimen/dimen6dp"
            android:layout_marginBottom="@dimen/dimen32dp"
            app:cardBackgroundColor="@color/colorWhite"
            app:cardCornerRadius="@dimen/dimen36dp">

            <TextView
                android:id="@+id/appVersionBuild"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:text="@string/appVersionBuild"
                android:textColor="@color/retroThemeInputTextColor"
                android:textIsSelectable="true"
                android:padding="@dimen/dimen8dp"
                android:textSize="@dimen/dimen14sp" />

        </com.google.android.material.card.MaterialCardView>

        <!-- Server Version -->
        <com.google.android.material.card.MaterialCardView
            style="?attr/materialCardViewFilledStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:cardBackgroundColor="?attr/materialCardBackgroundColor"
            android:layout_margin="@dimen/dimen4dp"
            app:cardCornerRadius="@dimen/dimen16dp">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:padding="@dimen/dimen12dp">

                <TextView
                    android:id="@+id/userServerVersionHeader"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/commitPage"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="@dimen/dimen16sp"
                    android:textStyle="bold" />

                <TextView
                    android:id="@+id/userServerVersion"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen4dp"
                    android:textColor="?attr/primaryTextColor"
                    android:textIsSelectable="true"
                    android:textSize="@dimen/dimen14sp" />

            </LinearLayout>

        </com.google.android.material.card.MaterialCardView>

        <!-- Donation Link -->
        <LinearLayout
            android:id="@+id/layoutFrame1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dimen12dp"
            android:orientation="horizontal">

            <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
                android:id="@+id/donationLinkPatreon"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dimen60dp"
                android:layout_marginHorizontal="@dimen/dimen4dp"
                android:stateListAnimator="@null"
                android:text="@string/supportTextPatreon"
                android:textStyle="bold"
                android:contentDescription="@string/supportTextPatreon"
                android:textColor="?attr/materialCardBackgroundColor"
                app:iconTint="?attr/materialCardBackgroundColor"
                android:backgroundTint="?attr/fabColor"
                app:icon="@drawable/ic_patreon" />

        </LinearLayout>

        <!-- Translate Link -->
        <LinearLayout
            android:id="@+id/layoutFrame2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dimen12dp"
            android:orientation="horizontal">

            <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
                android:id="@+id/translateLink"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dimen60dp"
                android:layout_marginHorizontal="@dimen/dimen4dp"
                android:stateListAnimator="@null"
                android:text="@string/translateWithCrowdin"
                android:textStyle="bold"
                android:contentDescription="@string/translateWithCrowdin"
                android:textColor="?attr/materialCardBackgroundColor"
                app:iconTint="?attr/materialCardBackgroundColor"
                android:backgroundTint="?attr/fabColor"
                app:icon="@drawable/ic_language" />

        </LinearLayout>

        <!-- Website Link -->
        <LinearLayout
            android:id="@+id/layoutFrame4"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dimen12dp"
            android:orientation="horizontal">

            <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
                android:id="@+id/appWebsite"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dimen60dp"
                android:layout_marginHorizontal="@dimen/dimen4dp"
                android:stateListAnimator="@null"
                android:text="@string/websiteText"
                android:textStyle="bold"
                android:contentDescription="@string/websiteText"
                android:textColor="?attr/materialCardBackgroundColor"
                app:iconTint="?attr/materialCardBackgroundColor"
                android:backgroundTint="?attr/fabColor"
                app:icon="@drawable/ic_browser" />

        </LinearLayout>

        <!-- Feedback Link -->
        <LinearLayout
            android:id="@+id/layoutFrame3"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dimen12dp"
            android:visibility="gone"
            android:orientation="horizontal">

            <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
                android:id="@+id/feedback"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dimen60dp"
                android:layout_marginHorizontal="@dimen/dimen4dp"
                android:stateListAnimator="@null"
                android:text="@string/feedbackText"
                android:textStyle="bold"
                android:contentDescription="@string/feedbackText"
                android:textColor="?attr/materialCardBackgroundColor"
                app:iconTint="?attr/materialCardBackgroundColor"
                android:backgroundTint="?attr/fabColor"
                app:icon="@drawable/ic_feedback" />

        </LinearLayout>

    </LinearLayout>

</LinearLayout>
