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

211 lines
11 KiB
XML
Raw Normal View History

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">
2018-11-06 15:11:02 +00:00
<androidx.core.widget.NestedScrollView
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
2017-05-23 15:40:13 +00:00
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
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
<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" />
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"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground"
2017-05-23 15:40:13 +00:00
android:showDividers="beginning|end|middle"
android:divider="@drawable/vertical_divider">
<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"
android:visibility="gone">
2021-06-07 14:09:57 +00:00
<ImageView
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"
2019-08-24 10:33:14 +00:00
android:paddingStart="@dimen/spacing_medium">
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"
/>
<TextView
android:id="@+id/quest_participation_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="3 Participants"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_quad" />
2017-05-23 15:40:13 +00:00
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-07-17 14:41:18 +00:00
app:srcCompat="@drawable/ic_keyboard_arrow_right_gray_24dp"/>
2017-05-23 15:40:13 +00:00
</LinearLayout>
<FrameLayout
2018-07-26 13:44:47 +00:00
android:visibility="gone"
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"
2017-05-23 15:40:13 +00:00
android:padding="@dimen/spacing_medium"
android:layout_marginBottom="@dimen/spacing_medium">
2021-06-07 14:09:57 +00:00
<ImageView
2017-05-23 15:40:13 +00:00
android:id="@+id/quest_image_view"
android:layout_width="@dimen/quest_image_width"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:layout_gravity="center_horizontal"/>
</FrameLayout>
<com.habitrpg.android.habitica.ui.views.social.OldQuestProgressView
2018-07-26 13:44:47 +00:00
android:visibility="gone"
2017-05-23 15:40:13 +00:00
android:id="@+id/quest_progress_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<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"
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"
tools:text="This is our super awesome party!"/>
</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"/>
<LinearLayout
android:id="@+id/members_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>
</LinearLayout>
2017-05-23 15:40:13 +00:00
</LinearLayout>
<Button
android:id="@+id/leave_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/spacing_large"
style="@style/HabiticaButton.Red"
android:text="@string/leave_party"/>
2019-06-13 08:54:47 +00:00
</LinearLayout>
2018-11-06 15:11:02 +00:00
</androidx.core.widget.NestedScrollView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>