2017-04-20 13:33:33 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-11-06 15:11:02 +00:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2021-06-04 14:11:48 +00:00
|
|
|
android:id="@+id/refreshLayout">
|
2019-06-13 08:54:47 +00:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2017-04-20 13:33:33 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:scrollbarSize="3dp"
|
|
|
|
|
android:scrollbarThumbVertical="@color/scrollbarThumb"
|
|
|
|
|
android:scrollbars="vertical">
|
2019-06-13 08:54:47 +00:00
|
|
|
<LinearLayout
|
2017-04-20 13:33:33 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:orientation="vertical">
|
2020-09-18 16:34:53 +00:00
|
|
|
<FrameLayout
|
2017-10-26 16:44:03 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-09-18 16:34:53 +00:00
|
|
|
style="@style/FlatCardView"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:id="@+id/invitationWrapper">
|
2017-04-20 13:33:33 +00:00
|
|
|
|
2019-11-04 15:21:59 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.social.InvitationsView
|
|
|
|
|
android:id="@+id/invitations_view"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-11-04 15:21:59 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/CardContent" />
|
2020-09-18 16:34:53 +00:00
|
|
|
</FrameLayout>
|
2017-04-20 13:33:33 +00:00
|
|
|
|
2018-02-09 17:13:44 +00:00
|
|
|
<LinearLayout
|
2018-08-22 18:02:11 +00:00
|
|
|
android:id="@+id/noPartyWrapper"
|
2018-02-09 17:13:44 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:orientation="vertical">
|
2018-11-08 14:20:59 +00:00
|
|
|
<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>
|
2018-08-22 18:02:11 +00:00
|
|
|
<LinearLayout
|
2018-02-09 17:13:44 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:orientation="vertical"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:layout_margin="@dimen/spacing_sides">
|
2018-08-22 18:02:11 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2018-11-08 14:20:59 +00:00
|
|
|
style="@style/Headline"
|
|
|
|
|
android:textSize="16sp"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColor="@color/text_ternary"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:text="@string/no_party_title"
|
2018-11-08 14:20:59 +00:00
|
|
|
android:gravity="center"
|
2023-03-23 06:05:39 +00:00
|
|
|
android:fontFamily="sans-serif-medium"
|
2018-11-08 14:20:59 +00:00
|
|
|
android:layout_marginBottom="@dimen/spacing_medium"/>
|
2018-08-22 18:02:11 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-04-24 08:17:24 +00:00
|
|
|
style="@style/Body2"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:text="@string/no_party_description"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColor="@color/text_quad"
|
2018-11-08 14:20:59 +00:00
|
|
|
android:gravity="center"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_large"/>
|
2018-08-22 18:02:11 +00:00
|
|
|
<Button
|
2020-04-11 03:51:32 +00:00
|
|
|
android:id="@+id/createPartyButton"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-12 15:48:42 +00:00
|
|
|
style="@style/HabiticaButton.Gray"
|
2019-03-05 12:14:42 +00:00
|
|
|
android:text="@string/create_party"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_marginTop="@dimen/spacing_large"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
2018-02-09 17:13:44 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1"
|
2018-02-09 17:13:44 +00:00
|
|
|
android:orientation="vertical"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:paddingHorizontal="@dimen/spacing_sides"
|
|
|
|
|
android:paddingTop="@dimen/spacing_sides"
|
|
|
|
|
android:paddingBottom="60dp"
|
|
|
|
|
android:background="@color/window_background">
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:src="@drawable/party_seeking"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_large"/>
|
2018-08-22 18:02:11 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2018-11-08 14:20:59 +00:00
|
|
|
style="@style/Headline"
|
2023-03-23 06:05:39 +00:00
|
|
|
android:fontFamily="sans-serif-medium"
|
2018-11-08 14:20:59 +00:00
|
|
|
android:textSize="16sp"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:text="@string/seeking_party_title"
|
2018-11-08 14:20:59 +00:00
|
|
|
android:gravity="center"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_medium"/>
|
2018-08-22 18:02:11 +00:00
|
|
|
<TextView
|
2018-10-17 16:38:38 +00:00
|
|
|
android:id="@+id/join_party_description_textview"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-04-24 08:17:24 +00:00
|
|
|
style="@style/Body2"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:text="@string/seeking_party_description"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:textColor="@color/text_quad"
|
2020-11-19 15:58:18 +00:00
|
|
|
android:textColorLink="@color/text_brand_neon"
|
2018-11-08 14:20:59 +00:00
|
|
|
android:gravity="center"
|
2020-09-17 11:47:02 +00:00
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_large"/>
|
2018-02-09 17:13:44 +00:00
|
|
|
|
2018-10-17 16:38:38 +00:00
|
|
|
<Button
|
2023-03-17 14:16:08 +00:00
|
|
|
android:id="@+id/seek_party_button"
|
2018-08-22 18:02:11 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-02-09 17:13:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2023-03-17 14:16:08 +00:00
|
|
|
style="@style/HabiticaButton.Primary"
|
|
|
|
|
android:text="@string/look_for_party"/>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/seeking_party_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:text="@string/you_re_looking_for_party"
|
2023-03-23 06:05:39 +00:00
|
|
|
android:textColor="@color/text_green10_green500"
|
2023-03-17 14:16:08 +00:00
|
|
|
style="@style/Body1_Button"
|
2023-03-23 06:05:39 +00:00
|
|
|
android:textAllCaps="false"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:background="@drawable/success_border"/>
|
2023-03-23 06:05:39 +00:00
|
|
|
|
2023-03-17 14:16:08 +00:00
|
|
|
<TextView
|
2023-03-23 06:05:39 +00:00
|
|
|
style="@style/Body1"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-03-23 06:05:39 +00:00
|
|
|
android:layout_marginTop="6dp"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:gravity="center"
|
2023-03-23 06:05:39 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
android:text="@string/seeking_hint"
|
|
|
|
|
android:textColor="@color/text_green10_green500" />
|
|
|
|
|
|
2023-03-17 14:16:08 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/leave_seeking_button"
|
2023-03-23 06:05:39 +00:00
|
|
|
style="@style/HabiticaButton.Borderless"
|
2023-03-17 14:16:08 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-03-23 06:05:39 +00:00
|
|
|
android:text="@string/leave_party_finder"
|
|
|
|
|
android:textColor="@color/text_red_maroon"
|
|
|
|
|
android:textSize="14sp" />
|
2023-03-17 14:16:08 +00:00
|
|
|
</LinearLayout>
|
2018-08-22 18:02:11 +00:00
|
|
|
|
2018-02-09 17:13:44 +00:00
|
|
|
</LinearLayout>
|
2017-10-26 16:44:03 +00:00
|
|
|
</LinearLayout>
|
2019-06-13 08:54:47 +00:00
|
|
|
</LinearLayout>
|
2018-11-06 15:11:02 +00:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2023-03-17 14:16:08 +00:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|