<?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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/primaryBackgroundColor"
    android:orientation="vertical"
    android:paddingTop="6dp"
    android:paddingBottom="12dp">

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

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <LinearLayout
                android:id="@+id/repoCreateHeadFrame"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:padding="8dp">

                <TextView
                    android:id="@+id/bottomSheetHeader"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="@string/newCreateButtonCopy"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"/>

            </LinearLayout>

            <com.google.android.flexbox.FlexboxLayout
                android:id="@+id/repoCreateSection"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:padding="4dp"
                app:alignContent="center"
                app:alignItems="flex_start"
                app:flexWrap="wrap"
                app:justifyContent="center">

                <TextView
                    android:id="@+id/newFile"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/file"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_file"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/createNewIssue"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/issue"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_issue"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/createLabel"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/labelTxt"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_tag"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/createNewMilestone"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/newIssueMilestoneTitle"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_milestone"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/createRelease"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/release"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_release"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/createPullRequest"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/pr"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_pull_request"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/addCollaborator"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/collaborator"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_person_add"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/create_wiki"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/wiki"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_wiki"
                    app:layout_alignSelf="flex_start"/>

            </com.google.android.flexbox.FlexboxLayout>

            <View
                android:id="@+id/repoDivider"
                android:layout_width="match_parent"
                android:layout_height="4dp"
                android:layout_marginBottom="16dp"
                android:background="?attr/dividerColor"/>

            <LinearLayout
                android:id="@+id/repoOthersHeadFrame"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:padding="8dp">

                <TextView
                    android:id="@+id/bottomSheetHeaderRepo"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="@string/repository"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"/>

            </LinearLayout>

            <com.google.android.flexbox.FlexboxLayout
                android:id="@+id/repoOthersSection"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:padding="4dp"
                app:alignContent="center"
                app:alignItems="flex_start"
                app:flexWrap="wrap"
                app:justifyContent="center">

                <TextView
                    android:id="@+id/starRepository"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/starMember"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_star"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/unStarRepository"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/unstar"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_star_unfilled"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/watchRepository"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/watch"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_watchers"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/unWatchRepository"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/unwatch"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_unwatch"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/copyRepoUrl"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/genericCopyUrl"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_copy"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/shareRepository"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/share"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_share"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/openWebRepo"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/openInBrowser"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_browser"
                    app:layout_alignSelf="flex_start"/>

                <TextView
                    android:id="@+id/repoSettings"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:background="?android:attr/selectableItemBackgroundBorderless"
                    android:gravity="center"
                    android:padding="4dp"
                    android:text="@string/navSettings"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="16sp"
                    app:drawableTopCompat="@drawable/ic_settings"
                    app:layout_alignSelf="flex_start"/>

            </com.google.android.flexbox.FlexboxLayout>

        </LinearLayout>

    </androidx.core.widget.NestedScrollView>

</LinearLayout>
