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"
|
2017-01-16 19:03:00 +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="wrap_content"
|
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:background="#fff"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:baselineAligned="false"
|
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
|
android:paddingEnd="16dp">
|
2016-11-25 14:03:47 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="12dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical">
|
2016-12-18 17:46:03 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:background="@drawable/gem_circle_background"
|
|
|
|
|
android:gravity="center">
|
2016-12-18 17:46:03 +00:00
|
|
|
|
|
|
|
|
<ImageView
|
2017-09-05 13:56:34 +00:00
|
|
|
android:id="@+id/gem_icon"
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="18dp"
|
2017-09-05 13:56:34 +00:00
|
|
|
android:layout_height="18dp" />
|
2016-12-18 17:46:03 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="38dp"
|
|
|
|
|
android:layout_height="17dp"
|
|
|
|
|
android:layout_marginTop="-6dp"
|
|
|
|
|
android:background="@drawable/gem_value_circle_background"
|
|
|
|
|
android:gravity="center">
|
2016-12-18 17:46:03 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/gemPrizeTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:ellipsize="middle"
|
|
|
|
|
android:lines="1"
|
2017-09-12 20:16:59 +00:00
|
|
|
android:singleLine="true"
|
2017-01-16 19:03:00 +00:00
|
|
|
tools:text="0"
|
|
|
|
|
android:textColor="@color/gem_icon_color"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textStyle="bold" />
|
2016-12-18 17:46:03 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_weight="6"
|
|
|
|
|
android:orientation="vertical">
|
2016-11-25 14:03:47 +00:00
|
|
|
|
|
|
|
|
|
2017-01-02 21:38:36 +00:00
|
|
|
<net.pherth.android.emoji_library.EmojiTextView
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/challenge_name"
|
|
|
|
|
style="@style/ChallengeName"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:maxLines="2"
|
|
|
|
|
tools:text="Example Challenge Name that is very long" />
|
2016-11-25 14:03:47 +00:00
|
|
|
|
2016-12-01 20:48:24 +00:00
|
|
|
<TextView
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/challenge_group_name"
|
|
|
|
|
style="@style/ChallengeByGroup"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_marginTop="1dp"
|
|
|
|
|
tools:text="Guild: XYZ" />
|
2016-12-01 20:48:24 +00:00
|
|
|
|
2017-01-12 20:44:40 +00:00
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/leaderParticipantLayout"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
2017-01-12 20:44:40 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/leaderName"
|
|
|
|
|
style="@style/ChallengeTaskDetails"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_marginTop="1dp"
|
|
|
|
|
tools:text="by Leader" />
|
2017-01-13 12:42:24 +00:00
|
|
|
<View
|
2017-01-13 16:42:05 +00:00
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
|
android:layout_marginRight="10dp"
|
2017-01-13 12:42:24 +00:00
|
|
|
android:layout_width="1dp"
|
|
|
|
|
android:layout_height="16dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:background="@color/text_light" />
|
2017-01-12 20:44:40 +00:00
|
|
|
<ImageView
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="18dp"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:src="@drawable/dialogue_participants" />
|
2017-01-12 20:44:40 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/participantCount"
|
|
|
|
|
style="@style/ChallengeTaskDetails"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_marginTop="1dp"
|
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
tools:text="12334" />
|
2017-01-12 20:44:40 +00:00
|
|
|
</LinearLayout>
|
2016-12-19 17:01:54 +00:00
|
|
|
|
2016-11-25 14:03:47 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content">
|
2016-11-25 14:03:47 +00:00
|
|
|
|
2017-01-12 20:44:40 +00:00
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/officialHabiticaChallengeLayout"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
|
android:background="@drawable/layout_rounded_bg_official_challenge"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:layout_marginRight="10dp">
|
2017-01-12 20:44:40 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/textView2"
|
|
|
|
|
style="@style/OfficialChallenge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
|
android:layout_marginRight="6dp"
|
|
|
|
|
android:text="@string/official" />
|
2017-01-12 20:44:40 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/challenge_is_participating"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
|
android:background="@drawable/layout_rounded_bg_official_challenge"
|
|
|
|
|
android:gravity="center">
|
2017-01-12 20:44:40 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2017-01-16 19:03:00 +00:00
|
|
|
style="@style/ParticipatingChallenge"
|
2017-01-12 20:44:40 +00:00
|
|
|
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
|
android:layout_marginRight="6dp"
|
|
|
|
|
android:text="@string/participating" />
|
2017-01-12 20:44:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
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
|
2017-01-16 19:03:00 +00:00
|
|
|
android:id="@+id/arrowImage"
|
2016-12-19 17:01:54 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-01-16 19:03:00 +00:00
|
|
|
android:layout_gravity="center_vertical">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-03 12:21:42 +00:00
|
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_right_gray_24dp"/>
|
2016-12-19 17:01:54 +00:00
|
|
|
</LinearLayout>
|
2016-12-18 17:46:03 +00:00
|
|
|
</LinearLayout>
|