habitica-android/Habitica/res/layout/daily_item_card.xml

63 lines
2.7 KiB
XML
Raw Normal View History

<?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" />
<variable
name="daily"
2015-08-10 13:56:52 +00:00
type="Task" />
</data>
<FrameLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
2015-06-29 16:24:44 +00:00
<LinearLayout
android:orientation="horizontal"
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">
<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.getLightTaskColor}"
2015-06-29 16:24:44 +00:00
android:gravity="center"/>
2015-06-29 16:24:44 +00:00
<LinearLayout
android:orientation="vertical"
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-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>
<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>
</FrameLayout>
</layout>