2015-06-20 18:46:04 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-10-29 19:49:57 +00:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
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-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"
|
|
|
|
|
android:background="@color/white">
|
|
|
|
|
<LinearLayout
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:id="@+id/btnLayout">
|
2015-06-20 18:46:04 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/btnReward"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_width="120dp"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:textSize="15sp"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:drawableLeft="@drawable/gold"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:text='@{String.format("%.0f", reward.value)}'
|
|
|
|
|
app:backgroundColor="@{reward.getLightTaskColor}" />
|
2015-06-20 18:46:04 +00:00
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView3"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_width="60dp"
|
2015-07-28 17:37:18 +00:00
|
|
|
android:padding="5dp"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_height="60dp"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
2015-08-17 21:37:56 +00:00
|
|
|
android:layout_centerVertical="true"
|
2015-08-03 16:14:20 +00:00
|
|
|
android:layout_marginLeft="5dp"
|
2015-08-17 21:37:56 +00:00
|
|
|
android:layout_marginStart="5dp"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:visibility='@{reward.specialTag == "item" ? View.VISIBLE : View.GONE}'
|
|
|
|
|
bind:imageName='@{"shop_"+reward.id}'/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_centerVertical="true">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/checkedTextView"
|
|
|
|
|
style="@style/CardTitle"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
|
android:text="@{reward.text}" />
|
2015-06-20 18:46:04 +00:00
|
|
|
|
2015-10-29 19:49:57 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView6"
|
|
|
|
|
style="@style/CardText"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@{reward.notes}"
|
|
|
|
|
android:visibility="@{reward.notes != null ? View.VISIBLE : View.GONE}"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/rightBorderView"
|
|
|
|
|
android:layout_width="5dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:backgroundColor="@{reward.getLightTaskColor}"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_alignParentEnd="true" />
|
2015-06-20 18:46:04 +00:00
|
|
|
</RelativeLayout>
|
2015-08-17 21:37:56 +00:00
|
|
|
</LinearLayout>
|
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-08-17 21:37:56 +00:00
|
|
|
</LinearLayout>
|
2015-06-20 18:46:04 +00:00
|
|
|
</layout>
|