2018-07-23 16:03:58 +00:00
<?xml version="1.0" encoding="utf-8"?>
2025-01-30 10:29:45 +00:00
<androidx.core.widget.NestedScrollView
android:id="@+id/nested_scroll_view" xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-23 16:03:58 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-12-19 15:40:18 +00:00
android:orientation="vertical">
2019-06-13 08:54:47 +00:00
<LinearLayout
2018-07-23 16:03:58 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbars="vertical"
android:layout_marginTop="@dimen/spacing_large"
2019-06-03 15:12:29 +00:00
>
2018-07-23 16:03:58 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2020-09-17 11:47:02 +00:00
android:paddingStart="16dp"
android:paddingEnd="16dp">
2021-02-23 10:49:59 +00:00
<TextView
2018-07-23 16:03:58 +00:00
android:id="@+id/challenge_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
style="@style/Title1"
android:textSize="18sp"
tools:text="Challenge name"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:layout_marginTop="@dimen/spacing_large"
android:layout_marginBottom="@dimen/spacing_large">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
2020-09-15 07:28:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2018-07-23 16:03:58 +00:00
android:padding="@dimen/spacing_medium"
android:orientation="vertical"
2020-09-15 07:28:34 +00:00
android:layout_marginEnd="@dimen/spacing_medium">
2018-07-23 16:03:58 +00:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<ImageView
android:id="@+id/participant_count_icon"
android:layout_width="24dp"
android:layout_height="24dp" />
<TextView
android:id="@+id/participant_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="17sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"
2018-07-23 16:03:58 +00:00
tools:text="5"
2020-09-15 07:28:34 +00:00
android:layout_marginStart="@dimen/spacing_small"
2018-07-23 16:03:58 +00:00
/>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/participants"
android:gravity="center"
android:textSize="12sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_ternary"/>
2018-07-23 16:03:58 +00:00
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
2020-09-15 07:28:34 +00:00
android:background="@drawable/layout_rounded_bg_window"
2018-07-23 16:03:58 +00:00
android:padding="@dimen/spacing_medium"
android:orientation="vertical"
2020-09-15 07:28:34 +00:00
android:layout_marginStart="@dimen/spacing_medium">
2018-07-23 16:03:58 +00:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<ImageView
android:id="@+id/gem_amount_icon"
android:layout_width="24dp"
android:layout_height="24dp" />
<TextView
android:id="@+id/gem_amount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="17sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_secondary"
2018-07-23 16:03:58 +00:00
tools:text="5"
2020-09-15 07:28:34 +00:00
android:layout_marginStart="@dimen/spacing_small"
2018-07-23 16:03:58 +00:00
/>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/challenge_prize"
android:gravity="center"
android:textSize="12sp"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_ternary"/>
2018-07-23 16:03:58 +00:00
</LinearLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout
android:id="@+id/join_button_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
2018-07-23 16:03:58 +00:00
android:paddingTop="@dimen/spacing_medium"
android:paddingBottom="@dimen/spacing_medium"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground">
2018-07-23 16:03:58 +00:00
<Button
android:id="@+id/join_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/join"
style="@style/HabiticaButton.Green"/>
</FrameLayout>
<LinearLayout
2018-08-29 13:05:05 +00:00
android:id="@+id/challenge_creator_wrapper"
2018-07-23 16:03:58 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
2018-07-23 16:03:58 +00:00
android:paddingTop="@dimen/spacing_medium"
android:paddingBottom="@dimen/spacing_medium"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground"
2018-07-23 16:03:58 +00:00
android:orientation="horizontal">
<com.habitrpg.android.habitica.ui.RoundedFrameLayout
android:layout_width="@dimen/avatar_chat_size"
android:layout_height="@dimen/avatar_chat_size"
android:clipChildren="true"
android:layout_marginEnd="@dimen/spacing_medium"
android:background="@drawable/rounded_avatar_bg">
2022-05-17 13:16:19 +00:00
<com.habitrpg.common.habitica.views.AvatarView
2018-07-23 16:03:58 +00:00
android:id="@+id/creator_avatarview"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center"
app:showMount="false"
app:showPet="false" />
</com.habitrpg.android.habitica.ui.RoundedFrameLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_weight="1">
2022-06-30 10:53:54 +00:00
<com.habitrpg.android.habitica.ui.views.UsernameLabel
2018-07-23 16:03:58 +00:00
android:id="@+id/creator_label"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/created_challenge"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_ternary"
2018-07-23 16:03:58 +00:00
android:textSize="12sp"/>
</LinearLayout>
<ImageButton
android:layout_width="40dp"
android:layout_height="match_parent"
style="@style/Base.Widget.AppCompat.Button.Borderless"/>
</LinearLayout>
<com.habitrpg.android.habitica.ui.views.CollapsibleSectionView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/challenge_categories"
2020-09-04 16:17:34 +00:00
android:background="?attr/colorContentBackground">
2021-02-23 10:49:59 +00:00
<TextView
2018-07-23 16:03:58 +00:00
android:id="@+id/challenge_description"
style="@style/Body2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="11dp"
android:lineSpacingExtra="4sp"
2022-09-27 12:33:59 +00:00
android:background="@drawable/layout_rounded_bg_window"
android:padding="@dimen/spacing_large"
2018-07-23 16:03:58 +00:00
tools:text="There’ s always more to learn! Maybe it’ s a specialized topic you’ re interested in, or maybe it’ s the experiences of a notable contributor. Read about it and you may win 15 gems!" />
</com.habitrpg.android.habitica.ui.views.CollapsibleSectionView>
<LinearLayout
android:id="@+id/task_group_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="13dp"
android:orientation="vertical">
</LinearLayout>
<FrameLayout
android:id="@+id/leave_button_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-17 11:47:02 +00:00
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
2018-07-23 16:03:58 +00:00
android:paddingTop="@dimen/spacing_medium"
2022-01-10 11:34:41 +00:00
android:paddingBottom="@dimen/spacing_large"
android:visibility="gone">
2018-07-23 16:03:58 +00:00
<Button
android:id="@+id/leave_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/leave"
style="@style/HabiticaButton.Red"/>
</FrameLayout>
2019-06-13 08:54:47 +00:00
</LinearLayout>
2018-11-06 15:11:02 +00:00
</androidx.core.widget.NestedScrollView>