2017-05-23 15:40:13 +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"
|
2017-06-21 14:12:17 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-05-23 15:40:13 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-11-14 20:04:38 +00:00
|
|
|
android:id="@+id/refreshLayout"
|
2017-05-23 15:40:13 +00:00
|
|
|
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-05-23 15:40:13 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
2019-06-13 08:54:47 +00:00
|
|
|
<LinearLayout
|
2025-02-11 11:57:16 +00:00
|
|
|
android:id="@+id/scroll_content"
|
2017-05-23 15:40:13 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2019-06-03 15:12:29 +00:00
|
|
|
>
|
2020-09-18 16:34:53 +00:00
|
|
|
<FrameLayout
|
2017-05-23 15:40:13 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-18 16:34:53 +00:00
|
|
|
style="@style/FlatCardView"
|
2017-07-17 14:41:18 +00:00
|
|
|
android:id="@+id/party_invitation_wrapper">
|
2017-05-23 15:40:13 +00:00
|
|
|
|
2019-11-04 15:21:59 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.social.InvitationsView
|
|
|
|
|
android:id="@+id/invitations_view"
|
|
|
|
|
android:layout_width="match_parent"
|
2023-06-01 10:25:49 +00:00
|
|
|
android:layout_height="wrap_content" />
|
2020-09-18 16:34:53 +00:00
|
|
|
</FrameLayout>
|
2017-05-23 15:40:13 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/title_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/Title1"
|
|
|
|
|
tools:text="Awesome Party"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:layout_margin="@dimen/spacing_large" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2022-09-27 12:33:59 +00:00
|
|
|
android:background="?attr/colorContentBackground">
|
2017-05-23 15:40:13 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/SegmentView">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/quest"
|
|
|
|
|
style="@style/SegmentTitle"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/new_quest_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/start_quest"
|
|
|
|
|
style="@style/HabiticaButton.Gray"/>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/quest_detail_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:background="@drawable/layout_rounded_bg_window"
|
2017-05-23 15:40:13 +00:00
|
|
|
android:padding="@dimen/spacing_medium"
|
|
|
|
|
android:gravity="center_vertical"
|
2018-07-26 13:44:47 +00:00
|
|
|
android:layout_marginBottom="@dimen/spacing_medium"
|
2023-09-06 14:33:10 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:visibility="visible">
|
2022-05-17 13:16:19 +00:00
|
|
|
<com.habitrpg.common.habitica.views.PixelArtView
|
2017-05-23 15:40:13 +00:00
|
|
|
android:id="@+id/quest_scroll_image_view"
|
|
|
|
|
android:layout_width="@dimen/gear_image_size"
|
|
|
|
|
android:layout_height="@dimen/gear_image_size" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2023-10-25 19:48:29 +00:00
|
|
|
android:paddingStart="@dimen/spacing_medium"
|
|
|
|
|
android:paddingEnd="0dp">
|
2017-05-23 15:40:13 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/quest_title_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:text="The Wail of the Whale"
|
2023-09-06 14:33:10 +00:00
|
|
|
style="@style/SubHeader1"
|
2023-09-04 09:22:57 +00:00
|
|
|
android:textColor="@color/text_primary"
|
2017-05-23 15:40:13 +00:00
|
|
|
/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/quest_participation_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:text="3 Participants"
|
2023-09-06 14:33:10 +00:00
|
|
|
style="@style/Body1"
|
2023-09-04 09:22:57 +00:00
|
|
|
android:textColor="@color/text_ternary" />
|
2017-05-23 15:40:13 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-10-25 19:48:29 +00:00
|
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_right_gray_24dp"
|
|
|
|
|
android:importantForAccessibility="no" />
|
2017-05-23 15:40:13 +00:00
|
|
|
</LinearLayout>
|
2023-08-28 09:36:13 +00:00
|
|
|
<LinearLayout
|
2018-07-26 13:44:47 +00:00
|
|
|
android:visibility="gone"
|
2023-08-28 09:36:13 +00:00
|
|
|
tools:visibility="visible"
|
2017-05-23 15:40:13 +00:00
|
|
|
android:id="@+id/quest_image_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-04 16:17:34 +00:00
|
|
|
android:background="@drawable/layout_rounded_bg_window"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_marginBottom="@dimen/spacing_medium"
|
|
|
|
|
android:clipToPadding="true"
|
|
|
|
|
android:clipChildren="true"
|
|
|
|
|
android:clipToOutline="true"
|
|
|
|
|
android:orientation="vertical">
|
2022-05-17 13:16:19 +00:00
|
|
|
<com.habitrpg.common.habitica.views.PixelArtView
|
2017-05-23 15:40:13 +00:00
|
|
|
android:id="@+id/quest_image_view"
|
2018-02-15 15:43:31 +00:00
|
|
|
android:layout_width="@dimen/quest_image_width"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:scaleType="fitCenter"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:padding="@dimen/spacing_medium"
|
2018-02-15 15:43:31 +00:00
|
|
|
android:layout_gravity="center_horizontal"/>
|
2023-08-28 09:36:13 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.social.OldQuestProgressView
|
|
|
|
|
android:visibility="gone"
|
2023-09-04 09:22:57 +00:00
|
|
|
tools:visibility="visible"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:id="@+id/quest_progress_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/quest_pending_items_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textSize="13sp"
|
|
|
|
|
style="@style/Caption2"
|
|
|
|
|
android:paddingVertical="3dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textColor="@color/green_1"
|
|
|
|
|
tools:text="Pending Items"
|
|
|
|
|
android:background="@color/green_100"
|
2023-09-04 09:22:57 +00:00
|
|
|
android:minHeight="28dp"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:visibility="gone"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/quest_pending_damage_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2023-09-04 09:22:57 +00:00
|
|
|
android:minHeight="28dp"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:textSize="13sp"
|
|
|
|
|
style="@style/Caption2"
|
|
|
|
|
android:paddingVertical="3dp"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textColor="@color/yellow_1"
|
|
|
|
|
tools:text="Pending Damage"
|
|
|
|
|
android:background="@color/yellow_100"
|
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/quest_mechanics_button"
|
2017-05-23 15:40:13 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-08-28 09:36:13 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
android:text="@string/quest_mechanics"
|
2023-09-04 09:22:57 +00:00
|
|
|
android:textColor="@color/brand_button" />
|
2023-08-28 09:36:13 +00:00
|
|
|
|
2017-05-23 15:40:13 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/quest_participant_response_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 16:02:46 +00:00
|
|
|
android:orientation="horizontal"
|
2020-11-16 11:00:27 +00:00
|
|
|
android:gravity="center_vertical"
|
2017-06-30 16:02:46 +00:00
|
|
|
android:visibility="gone">
|
2017-05-23 15:40:13 +00:00
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/quest_accept_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/quest_accept"
|
2017-05-23 15:40:13 +00:00
|
|
|
style="@style/HabiticaButton.Green"
|
2019-08-24 10:33:14 +00:00
|
|
|
android:layout_marginEnd="16dp" />
|
2017-05-23 15:40:13 +00:00
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/quest_reject_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/quest_reject"
|
2017-05-23 15:40:13 +00:00
|
|
|
style="@style/HabiticaButton.Red"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/quest_leader_response_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-30 16:02:46 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:visibility="gone">
|
2017-05-23 15:40:13 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/quest_begin_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/quest_begin"
|
2017-05-23 15:40:13 +00:00
|
|
|
style="@style/HabiticaButton.Yellow"
|
2019-08-24 10:33:14 +00:00
|
|
|
android:layout_marginEnd="16dp" />
|
2017-05-23 15:40:13 +00:00
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/quest_cancel_button"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-24 11:00:20 +00:00
|
|
|
android:text="@string/quest_cancel"
|
2017-05-23 15:40:13 +00:00
|
|
|
style="@style/HabiticaButton.Red" />
|
|
|
|
|
</LinearLayout>
|
2017-07-11 18:10:38 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/quest_participant_list"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"/>
|
2017-05-23 15:40:13 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/SegmentView">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/party_description"
|
|
|
|
|
style="@style/SegmentTitle"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/description_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-09-27 12:33:59 +00:00
|
|
|
tools:text="This is our super awesome party!"
|
|
|
|
|
android:background="@drawable/layout_rounded_bg_window"
|
|
|
|
|
android:padding="@dimen/spacing_large"/>
|
2017-05-23 15:40:13 +00:00
|
|
|
</LinearLayout>
|
2019-06-11 12:24:38 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/SegmentView">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/members"
|
|
|
|
|
style="@style/SegmentTitle"/>
|
2023-03-07 11:52:07 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/find_new_member"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/find_new_member"
|
|
|
|
|
style="@style/HabiticaButton.Gray"/>
|
2019-06-11 12:24:38 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/members_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"/>
|
2023-05-04 12:51:14 +00:00
|
|
|
<androidx.compose.ui.platform.ComposeView
|
|
|
|
|
android:id="@+id/invites_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
2019-06-11 12:24:38 +00:00
|
|
|
</LinearLayout>
|
2017-05-23 15:40:13 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/leave_button"
|
2023-05-09 00:47:53 +00:00
|
|
|
style="@style/HabiticaButton.Red"
|
2017-05-23 15:40:13 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="@dimen/spacing_large"
|
2023-05-09 00:47:53 +00:00
|
|
|
android:backgroundTint="@color/background_red"
|
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
|
android:text="@string/leave_party"
|
|
|
|
|
android:textSize="16sp" />
|
2019-06-13 08:54:47 +00:00
|
|
|
</LinearLayout>
|
2025-03-05 09:38:37 +00:00
|
|
|
</com.habitrpg.android.habitica.ui.views.HabiticaScrollView>
|
2023-03-07 11:52:07 +00:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|