<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/backgroundColor"
    android:orientation="vertical"
    tools:context=".navfragment.CreateFragment">

    <androidx.coordinatorlayout.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity">


        <com.google.android.material.appbar.AppBarLayout
            android:id="@+id/appBarLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

            <com.google.android.material.appbar.CollapsingToolbarLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/backgroundColor"
                app:layout_scrollFlags="scroll|snap|exitUntilCollapsed"
                app:title="@string/app_name">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">
                    <androidx.cardview.widget.CardView
                        android:id="@+id/toolbar"
                        android:layout_width="match_parent"
                        android:layout_height="55dp"
                        app:cardBackgroundColor="@color/cardBackgroundColor"
                        app:cardElevation="0dp">

                        <RelativeLayout
                            android:layout_width="match_parent"
                            android:layout_height="55dp">

                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerVertical="true"
                                android:layout_marginLeft="@dimen/_10sdp"
                                android:text="@string/create"
                                android:textColor="@color/textColor"
                                android:textSize="@dimen/_18sdp" />

                        </RelativeLayout>
                    </androidx.cardview.widget.CardView>
                    <LinearLayout
                        android:orientation="horizontal"
                        android:layout_width="match_parent"
                        android:layout_height="@dimen/_130sdp">
                        <RelativeLayout
                            android:id="@+id/custom_photo"
                            android:layout_weight="1"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent">

                            <androidx.cardview.widget.CardView
                                android:layout_width="match_parent"
                                android:layout_height="match_parent"
                                android:layout_marginHorizontal="@dimen/_5sdp"
                                android:layout_marginStart="@dimen/_8sdp"
                                android:layout_marginTop="@dimen/_30sdp"
                                android:layout_marginEnd="@dimen/_5sdp"
                                android:layout_marginBottom="@dimen/_5sdp"
                                android:orientation="vertical"
                                app:cardCornerRadius="@dimen/_10sdp">
                                <RelativeLayout
                                    android:background="@drawable/gradiant_bg1"
                                    android:layout_width="match_parent"
                                    android:layout_height="match_parent"
                                    android:orientation="vertical">

                                    <TextView
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_centerInParent="true"
                                        android:text="@string/custom_photo"
                                        android:textColor="#FFFFFF"
                                        android:textSize="15dp"
                                        android:textStyle="bold" />

                                    <TextView
                                        android:layout_alignParentBottom="true"
                                        android:gravity="center"
                                        android:layout_width="match_parent"
                                        android:layout_height="wrap_content"
                                        android:background="#B7FFFFFF"
                                        android:paddingHorizontal="@dimen/_8sdp"
                                        android:paddingVertical="@dimen/_10sdp"
                                        android:text="@string/create_own"
                                        android:textAllCaps="true"
                                        android:textColor="@color/black"
                                        android:textSize="10dp"
                                        android:textStyle="bold" />

                                </RelativeLayout>
                            </androidx.cardview.widget.CardView>
                            <ImageView
                                android:layout_marginRight="@dimen/_11sdp"
                                android:layout_alignParentRight="true"
                                android:layout_width="@dimen/_60sdp"
                                android:layout_height="@dimen/_60sdp"
                                android:src="@drawable/custome_post"
                                android:elevation="@dimen/_11sdp"/>
                        </RelativeLayout>
                        <RelativeLayout
                            android:id="@+id/custom_video"
                            android:layout_weight="1"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent">

                            <androidx.cardview.widget.CardView
                                android:layout_width="match_parent"
                                android:layout_height="match_parent"
                                android:layout_marginHorizontal="@dimen/_5sdp"
                                android:layout_marginStart="@dimen/_5sdp"
                                android:layout_marginTop="@dimen/_30sdp"
                                android:layout_marginEnd="@dimen/_8sdp"
                                android:layout_marginBottom="@dimen/_5sdp"
                                android:orientation="vertical"
                                app:cardCornerRadius="@dimen/_10sdp">
                                <RelativeLayout
                                    android:background="@drawable/gradiant_bg2"
                                    android:layout_width="match_parent"
                                    android:layout_height="match_parent"
                                    android:orientation="vertical">

                                    <TextView
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_centerInParent="true"
                                        android:text="@string/custom_video_post"
                                        android:textColor="#FFFFFF"
                                        android:textSize="15dp"
                                        android:textStyle="bold" />

                                    <TextView
                                        android:layout_alignParentBottom="true"
                                        android:gravity="center"
                                        android:layout_width="match_parent"
                                        android:layout_height="wrap_content"
                                        android:background="#B7FFFFFF"
                                        android:paddingHorizontal="@dimen/_8sdp"
                                        android:paddingVertical="@dimen/_10sdp"
                                        android:text="@string/create_own"
                                        android:textAllCaps="true"
                                        android:textColor="@color/black"
                                        android:textSize="10dp"
                                        android:textStyle="bold" />

                                </RelativeLayout>
                            </androidx.cardview.widget.CardView>
                            <ImageView
                                android:layout_marginRight="@dimen/_13sdp"
                                android:layout_alignParentRight="true"
                                android:layout_width="@dimen/_60sdp"
                                android:layout_height="@dimen/_56sdp"
                                android:src="@drawable/custom_video"
                                android:elevation="@dimen/_11sdp"/>
                        </RelativeLayout>
                    </LinearLayout>
                    <androidx.cardview.widget.CardView
                        android:id="@+id/photoToVideo"
                        android:layout_marginTop="@dimen/_5sdp"
                        android:layout_marginHorizontal="@dimen/_8sdp"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        app:cardCornerRadius="@dimen/_10sdp">
                        <LinearLayout
                            android:padding="@dimen/_8sdp"
                            android:gravity="center_vertical"
                            android:background="@drawable/gradiant_bg4"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:orientation="horizontal">
                            <ImageView
                                android:src="@drawable/slideshow"
                                android:layout_width="110dp"
                                android:layout_height="80dp"/>

                            <LinearLayout
                                android:layout_marginLeft="@dimen/_10sdp"
                                android:layout_weight="1"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:orientation="vertical">
                                <TextView
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:text="@string/photo_to_video"
                                    android:drawablePadding="@dimen/_5sdp"
                                    android:textStyle="bold"
                                    android:textColor="@color/white"
                                    android:textSize="16sp" />
                                <TextView
                                    android:layout_marginRight="@dimen/_5sdp"
                                    android:layout_width="wrap_content"
                                    android:layout_height="wrap_content"
                                    android:text="@string/create_photo_to_video_slideshow_animation"
                                    android:textColor="@color/white"
                                    android:textSize="10sp" />

                            </LinearLayout>
                            <TextView
                                android:layout_marginRight="@dimen/_8sdp"
                                android:id="@+id/apply_btn"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/create_now"
                                android:textSize="@dimen/_12sdp"
                                android:background="@drawable/full_rounded_bg"
                                android:backgroundTint="#A3FFFFFF"
                                android:paddingHorizontal="@dimen/_10sdp"
                                android:paddingVertical="@dimen/_8sdp"
                                android:textColor="@color/black"
                                android:textStyle="bold"/>

                        </LinearLayout>
                    </androidx.cardview.widget.CardView>

                </LinearLayout>

            </com.google.android.material.appbar.CollapsingToolbarLayout>

        </com.google.android.material.appbar.AppBarLayout>

        <RelativeLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_behavior="@string/appbar_scrolling_view_behavior">

            <LinearLayout
                android:id="@+id/invitationLay"
                android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                app:layout_behavior="@string/appbar_scrolling_view_behavior">

                <LinearLayout
                    android:layout_marginTop="@dimen/_8sdp"
                    android:layout_marginHorizontal="@dimen/_8sdp"
                    android:gravity="center"
                    android:background="@drawable/strock_bg"
                    android:backgroundTint="@color/lightgraycolor"
                    android:id="@+id/search_btn"
                    android:layout_width="match_parent"
                    android:layout_height="43dp"
                    android:orientation="horizontal"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent">
                    <EditText
                        android:id="@+id/search_et"
                        android:background="@null"
                        android:layout_marginLeft="@dimen/_8sdp"
                        android:layout_weight="1"
                        android:inputType="text"
                        android:imeOptions="actionSearch"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:hint="@string/search_tamplate_hint"
                        android:textColor="@color/gray_darl"
                        android:textSize="@dimen/_14sdp"/>
                    <ImageView
                        android:layout_marginRight="@dimen/_5sdp"
                        android:background="@drawable/btn"
                        android:backgroundTint="@color/app_color"
                        android:layout_width="@dimen/_35sdp"
                        android:layout_height="@dimen/_35sdp"
                        android:src="@drawable/ic_search"
                        android:padding="@dimen/_8sdp"
                        app:tint="@color/white" />
                </LinearLayout>

                <com.google.android.material.tabs.TabLayout
                    app:tabTextAppearance="@style/MineCustomTabText"
                    android:background="@color/transparent"
                    android:id="@+id/TabLayout"
                    android:layout_width="match_parent"
                    android:layout_height="32dp"
                    android:clipToPadding="true"
                    android:layout_marginLeft="@dimen/_8sdp"
                    app:tabMode="scrollable"
                    app:tabIndicatorHeight="0dp"
                    app:tabSelectedTextColor="@color/white"
                    app:tabTextColor="#888888"
                    app:tabBackground="@drawable/tablayout_bg"
                    android:layout_marginVertical="@dimen/_8sdp"/>
                <androidx.viewpager.widget.ViewPager
                    android:id="@+id/cardPager"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"/>

            </LinearLayout>
            <com.facebook.shimmer.ShimmerFrameLayout
                android:id="@+id/shimmerLay"
                android:layout_width="match_parent"
                android:layout_height="match_parent">
                <include
                    layout="@layout/section_placeholder"/>
            </com.facebook.shimmer.ShimmerFrameLayout>

        </RelativeLayout>

    </androidx.coordinatorlayout.widget.CoordinatorLayout>


</LinearLayout>