2015-06-20 18:46:04 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-11-30 01:22:35 +00:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-10-29 19:49:57 +00:00
|
|
|
xmlns:bind="http://schemas.android.com/apk/res-auto">
|
2015-06-20 18:46:04 +00:00
|
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
2015-08-17 15:37:43 +00:00
|
|
|
<import type="com.magicmicky.habitrpgwrapper.lib.models.tasks.Task" />
|
2015-10-29 19:49:57 +00:00
|
|
|
<import type="android.view.View"/>
|
2015-06-20 18:46:04 +00:00
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="reward"
|
2015-08-17 15:37:43 +00:00
|
|
|
type="Task" />
|
2015-06-20 18:46:04 +00:00
|
|
|
</data>
|
|
|
|
|
|
2015-10-29 19:49:57 +00:00
|
|
|
<LinearLayout
|
2015-11-09 03:18:20 +00:00
|
|
|
android:id="@+id/gearElementsLayout"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-08-17 21:37:56 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2015-12-02 17:46:27 +00:00
|
|
|
android:clickable="false"
|
2015-11-09 03:18:20 +00:00
|
|
|
>
|
|
|
|
|
|
2015-12-05 15:12:01 +00:00
|
|
|
<RelativeLayout
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView3"
|
|
|
|
|
android:layout_width="60dp"
|
|
|
|
|
android:padding="5dp"
|
|
|
|
|
android:layout_height="60dp"
|
2015-12-02 17:46:27 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:visibility='@{reward.specialTag == "item" ? View.VISIBLE : View.GONE}'
|
2015-12-05 15:12:01 +00:00
|
|
|
bind:imageName='@{"shop_"+reward.id}'
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true" />
|
2015-11-09 03:18:20 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/textReward"
|
|
|
|
|
android:orientation="vertical"
|
2015-12-05 15:12:01 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-02 17:46:27 +00:00
|
|
|
android:paddingBottom="@dimen/task_top_bottom_padding"
|
|
|
|
|
android:paddingTop="@dimen/task_top_bottom_padding"
|
|
|
|
|
android:paddingLeft='16dp'
|
2015-12-05 15:12:01 +00:00
|
|
|
android:paddingRight="@dimen/reward_spacing"
|
|
|
|
|
android:layout_toLeftOf="@+id/btnReward"
|
|
|
|
|
android:layout_toRightOf="@+id/imageView3"
|
|
|
|
|
android:layout_toEndOf="@+id/imageView3">
|
2015-11-09 03:18:20 +00:00
|
|
|
|
2015-12-26 15:21:21 +00:00
|
|
|
<com.github.data5tream.emojilib.EmojiTextView
|
2015-11-09 03:18:20 +00:00
|
|
|
android:id="@+id/checkedTextView"
|
|
|
|
|
style="@style/CardTitle"
|
2015-12-05 15:12:01 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 11:49:53 +00:00
|
|
|
bind:parsemarkdown="@{reward.text}"/>
|
2015-11-09 03:18:20 +00:00
|
|
|
|
2015-12-26 15:21:21 +00:00
|
|
|
<com.github.data5tream.emojilib.EmojiTextView
|
2015-11-24 20:21:32 +00:00
|
|
|
android:id="@+id/notesTextView"
|
2015-11-09 03:18:20 +00:00
|
|
|
style="@style/CardText"
|
2015-12-05 15:12:01 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-02 17:46:27 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 11:49:53 +00:00
|
|
|
bind:parsemarkdown="@{reward.notes}"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:visibility="@{reward.notes != null ? View.VISIBLE : View.GONE}"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/btnReward"
|
2015-12-05 15:12:01 +00:00
|
|
|
android:layout_width="80dp"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_marginRight="8dp"
|
2016-02-03 12:56:43 +00:00
|
|
|
android:layout_marginEnd="8dp"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
android:drawableLeft="@drawable/ic_header_gold"
|
2016-02-03 12:56:43 +00:00
|
|
|
android:drawableStart="@drawable/ic_header_gold"
|
2016-03-22 15:07:54 +00:00
|
|
|
android:text='@{String.format("%.2f", reward.value)}'
|
2015-11-09 03:18:20 +00:00
|
|
|
android:background="@drawable/rounded_purple_square"
|
2015-12-05 15:12:01 +00:00
|
|
|
android:paddingLeft="6dp"
|
2016-02-03 12:56:43 +00:00
|
|
|
android:paddingStart="6dp"
|
2015-12-05 15:12:01 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_alignParentEnd="true" />
|
2015-11-09 03:18:20 +00:00
|
|
|
|
|
|
|
|
|
2015-12-05 15:12:01 +00:00
|
|
|
</RelativeLayout>
|
2015-10-29 19:49:57 +00:00
|
|
|
<View
|
|
|
|
|
android:id="@+id/bottomBorderView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0.5dp"
|
|
|
|
|
android:background="@color/cell_separator"/>
|
2015-11-09 03:18:20 +00:00
|
|
|
|
2015-08-17 21:37:56 +00:00
|
|
|
</LinearLayout>
|
2015-06-20 18:46:04 +00:00
|
|
|
</layout>
|