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-03 16:14:20 +00:00
|
|
|
<import type="com.magicmicky.habitrpgwrapper.lib.models.tasks.Daily" />
|
2015-06-20 18:46:04 +00:00
|
|
|
|
|
|
|
|
<variable
|
|
|
|
|
name="daily"
|
2015-08-03 16:14:20 +00:00
|
|
|
type="Daily" />
|
2015-06-20 18:46:04 +00:00
|
|
|
</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="80dp"
|
|
|
|
|
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"
|
2015-08-03 16:14:20 +00:00
|
|
|
app:contentPadding="0dp"
|
|
|
|
|
app:cardColor="@{daily.getLightTaskColor}">
|
2015-06-20 18:46:04 +00:00
|
|
|
|
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}"
|
|
|
|
|
app:backgroundColor="@{daily.getDarkTaskColor}"
|
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"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
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-06-20 18:46:04 +00:00
|
|
|
|
2015-06-29 16:24:44 +00:00
|
|
|
</LinearLayout>
|
2015-06-20 18:46:04 +00:00
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
</layout>
|