2016-11-25 14:03:47 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2016-12-18 17:46:03 +00:00
|
|
|
|
|
|
|
|
<LinearLayout 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"
|
2016-11-25 14:03:47 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-12-13 20:04:15 +00:00
|
|
|
android:layout_margin="5dp"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:orientation="horizontal">
|
2016-11-25 14:03:47 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-12-18 17:46:03 +00:00
|
|
|
android:layout_width="0dp"
|
2016-11-25 14:03:47 +00:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:layout_margin="20dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:background="@drawable/gem_circle_background"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="18dp"
|
|
|
|
|
android:layout_height="18dp"
|
|
|
|
|
android:src="@drawable/ic_header_gem" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="38dp"
|
|
|
|
|
android:layout_height="17dp"
|
|
|
|
|
android:layout_marginTop="-6dp"
|
|
|
|
|
android:background="@drawable/gem_value_circle_background"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/gemPrizeTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:ellipsize="middle"
|
|
|
|
|
android:lines="1"
|
|
|
|
|
android:text="0"
|
|
|
|
|
android:textSize="12dp"
|
2016-12-19 17:01:54 +00:00
|
|
|
android:textColor="@color/gem_icon_color"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:layout_weight="6"
|
2016-11-25 14:03:47 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
2017-01-02 21:38:36 +00:00
|
|
|
<net.pherth.android.emoji_library.EmojiTextView
|
2016-11-25 14:03:47 +00:00
|
|
|
android:id="@+id/challenge_name"
|
2016-12-19 17:01:54 +00:00
|
|
|
style="@style/ChallengeName"
|
2016-11-25 14:03:47 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-12-13 20:04:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:maxLines="2"
|
2017-01-02 21:38:36 +00:00
|
|
|
tools:text="Example Challenge Name"/>
|
2016-11-25 14:03:47 +00:00
|
|
|
|
2016-12-01 20:48:24 +00:00
|
|
|
<TextView
|
2017-01-02 21:38:36 +00:00
|
|
|
android:id="@+id/challenge_group_name"
|
2016-12-19 17:01:54 +00:00
|
|
|
style="@style/ChallengeByGroup"
|
2016-12-01 20:48:24 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:layout_height="20dp"
|
2016-12-19 17:01:54 +00:00
|
|
|
android:layout_marginTop="1dp"
|
2016-12-18 17:46:03 +00:00
|
|
|
tools:text="Guild: XYZ" />
|
2016-12-01 20:48:24 +00:00
|
|
|
|
2016-12-19 17:01:54 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/challenge_is_participating"
|
|
|
|
|
style="@style/ParticipatingChallenge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
|
android:text="@string/participating" />
|
|
|
|
|
|
2016-12-18 17:46:03 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/challenge_task_summary"
|
2016-12-19 17:01:54 +00:00
|
|
|
style="@style/ChallengeTaskDetails"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="20dp"
|
2016-12-19 17:01:54 +00:00
|
|
|
android:layout_marginTop="1dp"
|
2016-12-18 17:46:03 +00:00
|
|
|
tools:text="1 Habit | 4 Dailies | 1 To-Do" />
|
2016-11-25 14:03:47 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-12-18 17:46:03 +00:00
|
|
|
android:id="@+id/officialHabiticaChallengeLayout"
|
|
|
|
|
android:layout_width="wrap_content"
|
2016-12-19 17:01:54 +00:00
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_marginTop="3dp"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:background="@drawable/layout_rounded_bg_official_challenge"
|
|
|
|
|
android:gravity="center">
|
2016-11-25 14:03:47 +00:00
|
|
|
|
2016-12-18 17:46:03 +00:00
|
|
|
<TextView
|
2016-12-19 17:01:54 +00:00
|
|
|
android:id="@+id/textView2"
|
|
|
|
|
style="@style/OfficialChallenge"
|
2016-12-13 20:04:15 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
|
android:layout_marginRight="6dp"
|
|
|
|
|
android:text="@string/official_habitica_challenge" />
|
2016-12-01 20:48:24 +00:00
|
|
|
</LinearLayout>
|
2016-11-25 14:03:47 +00:00
|
|
|
</LinearLayout>
|
2016-12-18 17:46:03 +00:00
|
|
|
|
2016-12-19 17:01:54 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/arrowImage"
|
2016-12-18 17:46:03 +00:00
|
|
|
android:layout_width="0dp"
|
2016-12-19 17:01:54 +00:00
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:layout_marginTop="30dp"
|
|
|
|
|
android:layout_weight="1">
|
2016-12-18 17:46:03 +00:00
|
|
|
|
2016-12-19 17:01:54 +00:00
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:src="@drawable/ic_keyboard_arrow_right_gray_24dp" />
|
|
|
|
|
</LinearLayout>
|
2016-12-18 17:46:03 +00:00
|
|
|
</LinearLayout>
|