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>
|
2015-08-10 13:56:52 +00:00
|
|
|
<import type="com.magicmicky.habitrpgwrapper.lib.models.tasks.Task" />
|
2015-06-20 18:46:04 +00:00
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="daily"
|
2015-08-10 13:56:52 +00:00
|
|
|
type="Task" />
|
2015-06-20 18:46:04 +00:00
|
|
|
</data>
|
|
|
|
|
|
|
|
|
|
<FrameLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
2015-08-17 15:37:43 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/white">
|
2015-06-29 16:24:44 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="horizontal"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2015-06-29 16:24:44 +00:00
|
|
|
android:layout_above="@+id/textView6"
|
|
|
|
|
android:layout_alignLeft="@+id/checkedTextView"
|
|
|
|
|
android:layout_alignStart="@+id/checkedTextView">
|
2015-06-20 18:46:04 +00:00
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/checkBox"
|
|
|
|
|
android:layout_width="wrap_content"
|
2015-06-29 16:24:44 +00:00
|
|
|
android:layout_height="fill_parent"
|
2015-08-03 16:14:20 +00:00
|
|
|
android:checked="@{daily.completed}"
|
2015-08-17 15:37:43 +00:00
|
|
|
app:backgroundColor="@{daily.getLightTaskColor}"
|
2015-06-29 16:24:44 +00:00
|
|
|
android:gravity="center"/>
|
2015-06-20 18:46:04 +00:00
|
|
|
|
2015-06-29 16:24:44 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:orientation="vertical"
|
2015-08-17 15:37:43 +00:00
|
|
|
android:layout_width="wrap_content"
|
2015-06-29 16:24:44 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:padding="5dp">
|
|
|
|
|
<CheckedTextView
|
|
|
|
|
android:id="@+id/checkedTextView"
|
|
|
|
|
style="@style/CardTitle"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@{daily.text}" />
|
2015-06-20 18:46:04 +00:00
|
|
|
|
2015-06-29 16:24:44 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView6"
|
|
|
|
|
style="@style/CardText"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="@{daily.notes}" />
|
|
|
|
|
</LinearLayout>
|
2015-08-17 15:37:43 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="@{String.valueOf(daily.getCompletedChecklistCount)+'/'+String.valueOf(daily.checklist.size)}"/>
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/rightBorderView"
|
|
|
|
|
android:layout_width="5dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
app:backgroundColor="@{daily.getLightTaskColor}"
|
|
|
|
|
android:gravity="center"/>
|
2015-06-29 16:24:44 +00:00
|
|
|
</LinearLayout>
|
2015-06-20 18:46:04 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
</layout>
|