<?xml version="1.0" encoding="utf-8"?>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout  xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/refreshLayout"
    android:background="@color/white">
    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbarSize="3dp"
        android:scrollbarThumbVertical="@color/scrollbarThumb"
        android:scrollbars="vertical">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingBottom="?android:actionBarSize">

            <androidx.cardview.widget.CardView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                style="@style/CardView.Default"
                android:id="@+id/invitationWrapper">

                <com.habitrpg.android.habitica.ui.views.social.InvitationsView
                    android:id="@+id/invitations_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    style="@style/CardContent" />
            </androidx.cardview.widget.CardView>

            <LinearLayout
                android:id="@+id/noPartyWrapper"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="158dp"
                    android:layout_marginBottom="@dimen/spacing_medium">
                    <ImageView
                        android:id="@+id/no_party_background"
                        android:layout_width="match_parent"
                        android:layout_height="124dp"
                        android:layout_alignParentTop="true"/>
                    <View
                        android:layout_width="match_parent"
                        android:layout_height="124dp"
                        android:background="@drawable/no_party_background_gradient"/>
                    <ImageView
                        android:layout_width="332dp"
                        android:layout_height="146dp"
                        android:layout_marginTop="12dp"
                        android:layout_centerHorizontal="true"
                        android:src="@drawable/no_party_banner"/>
                </RelativeLayout>
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    android:layout_margin="@dimen/spacing_large">
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        style="@style/Headline"
                        android:textSize="16sp"
                        android:textColor="@color/gray_200"
                        android:text="@string/no_party_title"
                        android:gravity="center"
                        android:layout_marginBottom="@dimen/spacing_medium"/>
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        style="@style/Body2"
                        android:text="@string/no_party_description"
                        android:textColor="@color/gray_300"
                        android:gravity="center"
                        android:layout_marginLeft="@dimen/spacing_large"
                        android:layout_marginRight="@dimen/spacing_large"/>
                    <Button
                        android:id="@+id/createPartyButton"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        style="@style/HabiticaButton.Gray.600"
                        android:background="@drawable/layout_rounded_bg_gray_700"
                        android:text="@string/create_party"
                        android:layout_marginTop="@dimen/spacing_large"/>
                </LinearLayout>
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    android:layout_margin="@dimen/spacing_large">
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        style="@style/Headline"
                        android:textSize="16sp"
                        android:text="@string/join_party_title"
                        android:gravity="center"
                        android:layout_marginBottom="@dimen/spacing_medium"/>
                    <TextView
                        android:id="@+id/join_party_description_textview"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        style="@style/Body2"
                        android:text="@string/join_party_description"
                        android:textColor="@color/gray_300"
                        android:gravity="center"
                        android:layout_marginLeft="@dimen/spacing_large"
                        android:layout_marginRight="@dimen/spacing_large"/>

                    <Button
                        android:id="@+id/username_textview"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:textColor="?colorAccent"
                        style="@style/HabiticaButton.Gray.600"
                        android:background="@drawable/layout_rounded_bg_gray_700"
                        android:layout_marginTop="@dimen/spacing_large"
                        android:layout_marginBottom="@dimen/spacing_large"/>

                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
    </androidx.core.widget.NestedScrollView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>