2015-06-20 18:46:04 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
|
|
|
|
<import type="com.magicmicky.habitrpgwrapper.lib.models.tasks.HabitItem" />
|
|
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="reward"
|
|
|
|
|
type="HabitItem" />
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
|
|
<FrameLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
|
android:id="@+id/card_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="@dimen/cardMarginVertical"
|
|
|
|
|
android:layout_marginLeft="@dimen/cardMarginHorizontal"
|
|
|
|
|
android:layout_marginRight="@dimen/cardMarginHorizontal"
|
|
|
|
|
android:layout_marginTop="@dimen/cardMarginVertical"
|
|
|
|
|
app:cardCornerRadius="2dp"
|
|
|
|
|
app:cardElevation="2dp"
|
|
|
|
|
app:cardPreventCornerOverlap="false"
|
|
|
|
|
app:contentPadding="0dp">
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:gravity="fill_horizontal|center_vertical|center_horizontal|fill|clip_vertical|fill_vertical|center|start|clip_horizontal|bottom|left|right|end|top">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<CheckedTextView
|
|
|
|
|
android:id="@+id/checkedTextView"
|
|
|
|
|
style="@style/CardTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:layout_toEndOf="@+id/imageView3"
|
|
|
|
|
android:layout_toRightOf="@+id/imageView3"
|
|
|
|
|
android:padding="5dp"
|
|
|
|
|
android:text="@{reward.text}" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView6"
|
|
|
|
|
style="@style/CardText"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignLeft="@+id/checkedTextView"
|
|
|
|
|
android:layout_alignStart="@+id/checkedTextView"
|
|
|
|
|
android:layout_below="@+id/checkedTextView"
|
|
|
|
|
android:maxLines="3"
|
|
|
|
|
android:minLines="2"
|
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
|
android:text="@{reward.notes}" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/separator"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="1dp"
|
|
|
|
|
android:layout_alignBottom="@+id/textView6"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:background="@android:color/darker_gray" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/btnReward"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_below="@+id/separator"
|
|
|
|
|
android:drawableLeft="@drawable/gold"
|
|
|
|
|
android:maxHeight="10dp"
|
|
|
|
|
android:text="@{String.valueOf(reward.value)}" />
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView3"
|
2015-07-28 17:37:18 +00:00
|
|
|
android:layout_width="65dp"
|
|
|
|
|
android:padding="5dp"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_above="@+id/separator"
|
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_alignParentStart="true"
|
2015-07-28 17:37:18 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:layout_marginLeft="5dp" />
|
2015-06-20 18:46:04 +00:00
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
</layout>
|