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

137 lines
5.9 KiB
XML
Raw Normal View History

2017-07-17 14:41:18 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-11-06 15:11:02 +00:00
<androidx.core.widget.NestedScrollView
2017-07-17 14:41:18 +00:00
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
2019-06-13 08:54:47 +00:00
<LinearLayout
2017-07-17 14:41:18 +00:00
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
2017-07-17 14:41:18 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:paddingStart="@dimen/content_border"
android:paddingEnd="@dimen/content_border"
2017-07-17 14:41:18 +00:00
android:paddingTop="12dp"
android:paddingBottom="12dp"
>
<com.habitrpg.common.habitica.views.PixelArtView
2017-07-17 14:41:18 +00:00
android:id="@+id/quest_scroll_image_view"
android:layout_width="63dp"
android:layout_height="63dp"
android:scaleType="fitCenter"
android:padding="6dp"
2022-11-22 14:48:15 +00:00
android:background="?attr/colorWindowBackground"/>
2017-07-17 14:41:18 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center_vertical">
<TextView
2018-08-07 11:40:57 +00:00
android:id="@+id/title_view"
2017-07-17 14:41:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Headline"
tools:text="Vice, Part 3: Vice Awakens"
android:textStyle="bold"/>
<TextView
android:id="@+id/quest_leader_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Subheader2"
tools:text="Started by Username"/>
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/black_10_alpha"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="12dp"
2020-09-17 11:47:02 +00:00
android:paddingStart="@dimen/content_border"
android:paddingEnd="@dimen/content_border"
2017-07-17 14:41:18 +00:00
android:paddingBottom="12dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/description"
style="@style/Body1"
android:layout_marginBottom="6dp"/>
<TextView
android:id="@+id/description_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Body2"
tools:text="This is the description"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/content_section_spacing"
android:layout_marginBottom="@dimen/header_spacing">
<TextView
android:id="@+id/participants_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Participants"
style="@style/Body1"/>
<TextView
android:id="@+id/participants_header_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Body1"
tools:text="3"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_quad"
2020-09-17 11:47:02 +00:00
android:layout_marginStart="6dp"/>
2017-07-17 14:41:18 +00:00
</LinearLayout>
<LinearLayout
android:id="@+id/quest_participant_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/black_10_alpha"/>
<LinearLayout
2021-02-17 10:03:34 +00:00
android:id="@+id/quest_response_wrapper"
2017-07-17 14:41:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
2017-07-17 14:41:18 +00:00
android:padding="@dimen/content_border">
<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-07-17 14:41:18 +00:00
style="@style/HabiticaButton.Yellow"
2021-06-04 08:46:15 +00:00
android:visibility="gone"
2020-09-17 11:47:02 +00:00
android:layout_marginEnd="16dp" />
2017-07-17 14:41:18 +00:00
<Button
2020-12-14 10:16:55 +00:00
android:id="@+id/quest_leave_button"
2017-07-17 14:41:18 +00:00
android:layout_width="0dp"
android:layout_weight="1"
2021-01-09 16:30:21 +00:00
android:layout_marginEnd="8dp"
2017-07-17 14:41:18 +00:00
android:layout_height="wrap_content"
2021-01-09 16:30:21 +00:00
android:text="@string/leave"
2021-06-04 08:46:15 +00:00
android:visibility="gone"
2017-07-17 14:41:18 +00:00
style="@style/HabiticaButton.Red" />
2020-12-14 10:16:55 +00:00
2017-07-17 14:41:18 +00:00
<Button
2020-12-14 10:16:55 +00:00
android:id="@+id/quest_cancel_button"
2017-07-17 14:41:18 +00:00
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
2020-12-14 10:16:55 +00:00
android:text="@string/quest_cancel"
2021-06-04 08:46:15 +00:00
android:visibility="gone"
2017-07-17 14:41:18 +00:00
style="@style/HabiticaButton.Red" />
</LinearLayout>
2019-06-13 08:54:47 +00:00
</LinearLayout>
2018-11-06 15:11:02 +00:00
</androidx.core.widget.NestedScrollView>