mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-31 19:20:34 +00:00
204 lines
No EOL
7.3 KiB
XML
204 lines
No EOL
7.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<com.habitrpg.android.habitica.ui.MaxHeightLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
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"
|
||
|
||
android:orientation="vertical"
|
||
app:maxHeightMultiplier="0.8">
|
||
|
||
<LinearLayout
|
||
android:id="@+id/challenge_not_joined_header"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="19dp"
|
||
android:layout_marginLeft="24dp"
|
||
android:layout_marginRight="19dp"
|
||
android:layout_marginStart="24dp"
|
||
android:layout_marginTop="24dp"
|
||
android:orientation="vertical"
|
||
android:visibility="gone"
|
||
tools:visibility="visible">
|
||
|
||
<TextView
|
||
style="@style/Caption3"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:height="20dp"
|
||
android:text="Challenge"
|
||
android:textAllCaps="true" />
|
||
|
||
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:id="@+id/challenge_joined_header"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
android:visibility="gone"
|
||
tools:visibility="visible">
|
||
|
||
<Button
|
||
android:id="@+id/challenge_go_to_btn"
|
||
style="@style/Widget.AppCompat.Button.Borderless"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_gravity="center"
|
||
android:layout_marginBottom="5dp"
|
||
android:layout_marginTop="5dp"
|
||
android:text="GO TO CHALLENGE"
|
||
android:textColor="#6133b4"
|
||
android:textSize="16sp" />
|
||
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="1dp"
|
||
android:background="#1f000000" />
|
||
</LinearLayout>
|
||
|
||
|
||
<ScrollView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_marginEnd="19dp"
|
||
android:layout_marginLeft="24dp"
|
||
android:layout_marginRight="19dp"
|
||
android:layout_marginStart="24dp"
|
||
android:layout_weight="8">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical"
|
||
android:scrollbarAlwaysDrawVerticalTrack="true"
|
||
android:scrollbars="vertical">
|
||
|
||
|
||
<net.pherth.android.emoji_library.EmojiTextView
|
||
android:id="@+id/challenge_name"
|
||
style="@style/Title2"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="9dp"
|
||
tools:text="Read a book by or about a person in your field of study" />
|
||
|
||
<net.pherth.android.emoji_library.EmojiTextView
|
||
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"
|
||
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!" />
|
||
|
||
<LinearLayout
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="28dp"
|
||
android:layout_marginBottom="10dp"
|
||
android:layout_marginTop="10dp"
|
||
android:gravity="center_vertical">
|
||
|
||
<TextView
|
||
android:id="@+id/challenge_leader"
|
||
style="@style/Body1"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="Some Leader"
|
||
android:textColor="#6133b4" />
|
||
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
</ScrollView>
|
||
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="1dp"
|
||
android:background="#1f000000" />
|
||
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
|
||
android:layout_marginEnd="8dp"
|
||
android:layout_marginLeft="24dp"
|
||
android:layout_marginRight="8dp"
|
||
android:layout_marginStart="24dp"
|
||
android:orientation="horizontal">
|
||
|
||
<LinearLayout
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="10dp"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_weight="1"
|
||
android:orientation="horizontal">
|
||
|
||
<LinearLayout
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center">
|
||
|
||
<ImageView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="36dp"
|
||
android:src="@drawable/dialogue_gem" />
|
||
|
||
<TextView
|
||
android:id="@+id/gem_amount"
|
||
style="@style/Body1"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
tools:text="15" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="17dp"
|
||
android:layout_marginStart="17dp"
|
||
android:gravity="center">
|
||
|
||
<ImageView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="36dp"
|
||
android:src="@drawable/dialogue_participants" />
|
||
|
||
<TextView
|
||
android:id="@+id/challenge_member_count"
|
||
style="@style/Body1"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
tools:text="15" />
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
|
||
<Button
|
||
android:id="@+id/challenge_join_btn"
|
||
style="@style/Widget.AppCompat.Button.Borderless"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_gravity="center"
|
||
android:text="Join"
|
||
android:textColor="#1ca372"
|
||
android:textSize="16sp"
|
||
android:visibility="gone"
|
||
tools:visibility="visible" />
|
||
|
||
<Button
|
||
android:id="@+id/challenge_leave_btn"
|
||
style="@style/Widget.AppCompat.Button.Borderless"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_gravity="center"
|
||
android:text="Leave"
|
||
android:textColor="#d70e14"
|
||
android:textSize="16sp"
|
||
android:visibility="gone"
|
||
tools:visibility="visible" />
|
||
</LinearLayout>
|
||
</com.habitrpg.android.habitica.ui.MaxHeightLinearLayout> |