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-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-11-09 03:18:20 +00:00
|
|
|
>
|
2015-08-17 21:37:56 +00:00
|
|
|
<LinearLayout
|
2015-11-09 03:18:20 +00:00
|
|
|
android:orientation="horizontal"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:background="@color/white"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
2015-10-29 19:49:57 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView3"
|
|
|
|
|
android:layout_width="60dp"
|
|
|
|
|
android:padding="5dp"
|
|
|
|
|
android:layout_height="60dp"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
|
android:visibility='@{reward.specialTag == "item" ? View.VISIBLE : View.VISIBLE}'
|
|
|
|
|
bind:imageName='@{"shop_"+reward.id}'/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/textReward"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="wrap_content"
|
2015-10-29 19:49:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-11-09 03:18:20 +00:00
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/checkedTextView"
|
|
|
|
|
style="@style/CardTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
|
android:text="@{reward.text}" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView6"
|
|
|
|
|
style="@style/CardText"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="41dp"
|
|
|
|
|
android:text="@{reward.notes}"
|
|
|
|
|
android:visibility="@{reward.notes != null ? View.VISIBLE : View.GONE}"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/btnReward"
|
|
|
|
|
android:layout_width="50dp"
|
|
|
|
|
android:layout_height="25dp"
|
|
|
|
|
android:padding="3dp"
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
android:drawableLeft="@drawable/ic_header_gold"
|
|
|
|
|
android:text='@{String.format("%.0f", reward.value)}'
|
|
|
|
|
android:background="@drawable/rounded_purple_square"
|
|
|
|
|
android:layout_weight="2"
|
|
|
|
|
android:layout_marginRight="10dp" />
|
|
|
|
|
|
|
|
|
|
|
2015-10-29 19:49:57 +00:00
|
|
|
</LinearLayout>
|
2015-11-09 03:18:20 +00:00
|
|
|
|
2015-06-20 18:46:04 +00:00
|
|
|
</RelativeLayout>
|
2015-11-09 03:18:20 +00:00
|
|
|
|
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-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>
|