habitica-android/Habitica/res/layout/fragment_no_party.xml

205 lines
9.9 KiB
XML
Raw Permalink Normal View History

2017-04-20 13:33:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2023-04-01 15:36:34 +00:00
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
2025-03-05 09:38:37 +00:00
<com.habitrpg.android.habitica.ui.views.HabiticaScrollView
2025-01-30 10:29:45 +00:00
android:id="@+id/nested_scroll_view"
2017-04-20 13:33:33 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbarSize="3dp"
android:scrollbarThumbVertical="@color/scrollbarThumb"
android:scrollbars="vertical">
2023-04-01 15:36:34 +00:00
2019-06-13 08:54:47 +00:00
<LinearLayout
android:id="@+id/scroll_content"
2017-04-20 13:33:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2023-04-01 15:36:34 +00:00
2020-09-18 16:34:53 +00:00
<FrameLayout
2023-04-01 15:36:34 +00:00
android:id="@+id/invitationWrapper"
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
2023-04-01 15:36:34 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2017-04-20 13:33:33 +00:00
<com.habitrpg.android.habitica.ui.views.social.InvitationsView
android:id="@+id/invitations_view"
2023-04-01 15:36:34 +00:00
style="@style/CardContent"
android:layout_width="match_parent"
2023-04-01 15:36:34 +00:00
android:layout_height="wrap_content" />
2020-09-18 16:34:53 +00:00
</FrameLayout>
2017-04-20 13:33:33 +00:00
<LinearLayout
android:id="@+id/noPartyWrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2023-04-01 15:36:34 +00:00
2018-11-08 14:20:59 +00:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="158dp"
android:layout_marginBottom="@dimen/spacing_medium">
2023-04-01 15:36:34 +00:00
2018-11-08 14:20:59 +00:00
<ImageView
android:id="@+id/no_party_background"
android:layout_width="match_parent"
android:layout_height="124dp"
2023-04-01 15:36:34 +00:00
android:layout_alignParentTop="true" />
<View
android:layout_width="match_parent"
android:layout_height="124dp"
android:background="@drawable/no_party_background_gradient" />
2018-11-08 14:20:59 +00:00
<View
android:layout_width="match_parent"
android:layout_height="124dp"
2023-04-01 15:36:34 +00:00
android:rotation="-180"
android:background="@drawable/no_party_background_gradient" />
2018-11-08 14:20:59 +00:00
<ImageView
android:layout_width="332dp"
android:layout_height="146dp"
android:layout_centerHorizontal="true"
2023-04-01 15:36:34 +00:00
android:layout_marginTop="12dp"
android:src="@drawable/no_party_banner" />
2018-11-08 14:20:59 +00:00
</RelativeLayout>
2023-04-01 15:36:34 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-04-01 15:36:34 +00:00
android:layout_margin="@dimen/spacing_sides"
android:orientation="vertical">
<TextView
2023-04-01 15:36:34 +00:00
style="@style/Headline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-04-01 15:36:34 +00:00
android:layout_marginBottom="@dimen/spacing_medium"
android:fontFamily="sans-serif-medium"
2023-04-01 15:36:34 +00:00
android:gravity="center"
android:text="@string/no_party_title"
android:textColor="@color/text_ternary"
android:textSize="16sp" />
<TextView
2023-04-01 15:36:34 +00:00
style="@style/Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="@dimen/spacing_large"
2023-04-01 15:36:34 +00:00
android:layout_marginEnd="@dimen/spacing_large"
android:gravity="center"
android:text="@string/no_party_description"
android:textColor="@color/text_quad" />
<Button
2020-04-11 03:51:32 +00:00
android:id="@+id/createPartyButton"
2023-04-01 15:36:34 +00:00
style="@style/HabiticaButton.Gray"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-04-01 15:36:34 +00:00
android:layout_marginTop="@dimen/spacing_large"
android:text="@string/create_party" />
</LinearLayout>
2023-04-01 15:36:34 +00:00
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
app:cardBackgroundColor="@color/window_background"
app:strokeWidth="0dp"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
2023-04-01 15:36:34 +00:00
android:paddingBottom="100dp"
android:paddingHorizontal="@dimen/spacing_sides"
2023-04-01 15:36:34 +00:00
android:paddingTop="@dimen/spacing_sides">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2023-04-01 15:36:34 +00:00
android:layout_marginBottom="@dimen/spacing_large"
android:src="@drawable/party_seeking" />
<TextView
2023-04-01 15:36:34 +00:00
style="@style/Headline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-04-01 15:36:34 +00:00
android:layout_marginBottom="@dimen/spacing_medium"
android:fontFamily="sans-serif-medium"
android:gravity="center"
2023-04-01 15:36:34 +00:00
android:text="@string/seeking_party_title"
android:textSize="16sp" />
<TextView
android:id="@+id/join_party_description_textview"
2023-04-01 15:36:34 +00:00
style="@style/Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large"
2023-04-01 15:36:34 +00:00
android:layout_marginBottom="@dimen/spacing_large"
android:gravity="center"
android:text="@string/seeking_party_description"
2023-05-02 12:16:52 +00:00
android:textColor="@color/text_quad"
2023-04-01 15:36:34 +00:00
android:textColorLink="@color/text_brand_neon" />
<Button
android:id="@+id/seek_party_button"
2023-04-01 15:36:34 +00:00
style="@style/HabiticaButton.Primary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-04-01 15:36:34 +00:00
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">
2023-04-01 15:36:34 +00:00
<TextView
2023-04-01 15:36:34 +00:00
style="@style/Body1_Button"
android:layout_width="match_parent"
android:layout_height="40dp"
2023-04-01 15:36:34 +00:00
android:background="@drawable/success_border"
android:text="@string/you_re_looking_for_party"
android:textAllCaps="false"
2023-04-01 15:36:34 +00:00
android:textColor="@color/text_green1_green500"
android:textSize="16sp" />
<TextView
style="@style/Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
2023-04-01 15:36:34 +00:00
android:fontFamily="@string/font_family_regular"
android:gravity="center"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:text="@string/seeking_hint"
2023-04-01 15:36:34 +00:00
android:textColor="@color/text_green1_green500" />
<Button
android:id="@+id/leave_seeking_button"
style="@style/HabiticaButton.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-05-02 12:16:52 +00:00
android:text="@string/leave"
2023-04-01 15:36:34 +00:00
android:textColor="@color/text_red_maroon" />
</LinearLayout>
</LinearLayout>
2023-04-01 15:36:34 +00:00
</com.google.android.material.card.MaterialCardView>
2017-10-26 16:44:03 +00:00
</LinearLayout>
2023-04-01 15:36:34 +00:00
</LinearLayout>
2025-03-05 09:38:37 +00:00
</com.habitrpg.android.habitica.ui.views.HabiticaScrollView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>