<?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="match_parent"
    android:focusableInTouchMode="true"
    android:orientation="vertical">


    <include layout="@layout/appbar_elevation_dark"/>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        app:layout_behavior="@string/scroll_behavior">


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="top|center"
            android:gravity="center"
            android:orientation="vertical"
            android:padding="@dimen/spacing_xs_large">

            <com.fastaccess.ui.widgets.FontTextView
                style="@style/TextAppearance.AppCompat.Title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/spacing_xs_large"
                android:text="@string/gist_description"/>


            <android.support.v7.widget.CardView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/spacing_xs_large"
                app:cardBackgroundColor="?card_background"
                app:contentPaddingBottom="@dimen/spacing_normal"
                app:contentPaddingLeft="@dimen/spacing_xs_large"
                app:contentPaddingRight="@dimen/spacing_xs_large"
                app:contentPaddingTop="@dimen/spacing_normal">

                <android.support.design.widget.TextInputLayout
                    android:id="@+id/description"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:hintTextAppearance="@style/TextAppearance.AppCompat.Title">

                    <android.support.design.widget.TextInputEditText
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:hint="@string/description"
                        android:inputType="textMultiLine|textCapSentences"/>

                </android.support.design.widget.TextInputLayout>
            </android.support.v7.widget.CardView>

            <com.fastaccess.ui.widgets.FontTextView
                style="@style/TextAppearance.AppCompat.Title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/spacing_xs_large"
                android:text="@string/file"/>

            <android.support.v7.widget.CardView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/spacing_xs_large"
                app:cardBackgroundColor="?card_background"
                app:contentPaddingBottom="@dimen/spacing_normal"
                app:contentPaddingLeft="@dimen/spacing_xs_large"
                app:contentPaddingRight="@dimen/spacing_xs_large"
                app:contentPaddingTop="@dimen/spacing_normal">

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

                    <android.support.design.widget.TextInputLayout
                        android:id="@+id/fileName"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        app:hintTextAppearance="@style/TextAppearance.AppCompat.Title">

                        <android.support.design.widget.TextInputEditText
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:hint="@string/file_name_hint"
                            android:inputType="textCapSentences"
                            android:maxLines="1"/>

                    </android.support.design.widget.TextInputLayout>


                    <com.fastaccess.ui.widgets.FontTextView
                        android:id="@+id/fileContent"
                        style="@style/Widget.AppCompat.EditText"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/spacing_xs_large"
                        android:hint="@string/type_here"
                        android:paddingBottom="@dimen/spacing_xs_large"
                        android:paddingTop="@dimen/spacing_xs_large"/>

                </LinearLayout>
            </android.support.v7.widget.CardView>

            <com.fastaccess.ui.widgets.FontTextView
                style="@style/Base.TextAppearance.AppCompat.Title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/bottom_border"
                android:gravity="center"
                android:padding="@dimen/spacing_xs_large"
                android:text="@string/submit_as"/>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:gravity="center"
                android:orientation="horizontal">

                <android.support.design.widget.FloatingActionButton
                    android:id="@+id/createSecretGist"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_margin="@dimen/fab_margin"
                    android:src="@drawable/ic_incognito"
                    android:tint="@color/white"/>

                <android.support.design.widget.FloatingActionButton
                    android:id="@+id/createPublicGist"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_margin="@dimen/fab_margin"
                    android:src="@drawable/ic_brower"
                    android:tint="@color/white"/>

            </LinearLayout>
        </LinearLayout>

    </ScrollView>

    <include layout="@layout/add_banner_layout"/>

</LinearLayout>