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

201 lines
8.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2017-01-11 22:46:26 +00:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:foreground="?selectableItemBackground"
android:orientation="vertical">
2017-01-05 17:19:06 +00:00
<FrameLayout
2017-01-11 22:46:26 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
2015-08-17 20:06:29 +00:00
android:layout_width="match_parent"
2016-03-07 17:21:59 +00:00
android:layout_height="wrap_content"
2017-09-05 14:47:13 +00:00
android:orientation="horizontal"
android:baselineAligned="false">
2017-01-11 22:46:26 +00:00
<FrameLayout
android:id="@+id/checkBoxHolder"
2015-08-17 20:32:21 +00:00
android:layout_width="@dimen/button_width"
2016-05-10 14:07:12 +00:00
android:layout_height="match_parent">
2017-01-11 22:46:26 +00:00
<View
2017-01-05 17:19:06 +00:00
android:layout_width="1dp"
android:layout_height="match_parent"
2017-01-11 22:46:26 +00:00
android:layout_gravity="end"
android:layout_marginBottom="1dp"
android:background="@color/task_border_gray" />
<CheckBox
2015-11-07 18:10:03 +00:00
android:id="@+id/checkBox"
android:layout_width="@dimen/checkbox_size"
android:layout_height="@dimen/checkbox_size"
2017-01-11 22:46:26 +00:00
android:layout_gravity="center"
2015-11-07 18:10:03 +00:00
android:button="@drawable/daily_checkbox"
2017-01-11 22:46:26 +00:00
android:gravity="center" />
</FrameLayout>
<LinearLayout
android:id="@+id/linearLayout"
2016-05-12 11:44:29 +00:00
android:layout_width="0dp"
2017-01-05 17:19:06 +00:00
android:layout_height="wrap_content"
2017-01-11 22:46:26 +00:00
android:layout_weight="1"
android:orientation="vertical"
android:paddingBottom="@dimen/task_top_bottom_padding"
android:paddingEnd="@dimen/task_text_padding"
2016-08-11 16:06:55 +00:00
android:paddingLeft="@dimen/task_text_padding"
android:paddingRight="@dimen/task_text_padding"
2017-01-11 22:46:26 +00:00
android:paddingStart="@dimen/task_text_padding"
android:paddingTop="@dimen/task_top_bottom_padding">
<net.pherth.android.emoji_library.EmojiTextView
2016-05-12 11:44:29 +00:00
android:id="@+id/checkedTextView"
2017-01-11 22:46:26 +00:00
style="@style/Subheader3"
android:textColor="#000"
2016-05-12 11:44:29 +00:00
android:layout_width="match_parent"
2017-01-11 22:46:26 +00:00
android:layout_height="wrap_content"
tools:text="Daily Title" />
<net.pherth.android.emoji_library.EmojiTextView
2016-05-12 11:44:29 +00:00
android:id="@+id/notesTextView"
2017-01-16 17:14:28 +00:00
style="@style/Caption2.Regular"
2016-05-12 11:44:29 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-01-11 22:46:26 +00:00
android:maxLines="3"
tools:text="Notes" />
2017-01-05 17:19:06 +00:00
2017-02-26 11:07:16 +00:00
<TextView
android:id="@+id/approvalRequiredTextField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Caption4"
android:text="@string/pending_approval"
/>
2017-01-11 22:46:26 +00:00
<LinearLayout
2017-01-05 17:19:06 +00:00
android:id="@+id/taskIconWrapper"
2016-05-12 11:44:29 +00:00
android:layout_width="match_parent"
2017-01-05 17:19:06 +00:00
android:layout_height="wrap_content"
2017-01-11 22:46:26 +00:00
android:layout_marginTop="@dimen/task_icon_space"
android:orientation="horizontal">
2017-01-05 17:19:06 +00:00
2017-01-11 22:46:26 +00:00
<TextView
android:id="@+id/specialTaskText"
2017-01-05 17:19:06 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableStart="@drawable/task_icon_calendar"
2017-01-13 12:42:24 +00:00
android:drawableLeft="@drawable/task_icon_calendar"
2017-01-11 22:46:26 +00:00
android:textColor="@color/task_secondary_text"
2017-01-05 17:19:06 +00:00
android:visibility="invisible"
2017-01-11 22:46:26 +00:00
style="@style/Caption3"
tools:visibility="visible"
tools:text="special" />
<TextView
2017-01-05 17:19:06 +00:00
android:id="@+id/streakTextView"
android:layout_width="wrap_content"
android:layout_height="@dimen/task_icon_size"
android:layout_marginStart="@dimen/task_icon_space"
2017-01-13 12:42:24 +00:00
android:layout_marginLeft="@dimen/task_icon_space"
2017-01-05 17:19:06 +00:00
android:drawableStart="@drawable/task_icon_streak"
2017-01-13 12:42:24 +00:00
android:drawableLeft="@drawable/task_icon_streak"
2017-01-11 22:46:26 +00:00
android:textColor="@color/task_secondary_text"
2017-01-13 12:42:24 +00:00
tools:text="10"
android:gravity="center_vertical"
style="@style/Caption3" />
2017-01-11 22:46:26 +00:00
<ImageView
android:id="@+id/iconviewChallenge"
2017-01-05 17:19:06 +00:00
android:layout_width="@dimen/task_icon_size"
android:layout_height="@dimen/task_icon_size"
android:layout_marginStart="@dimen/task_icon_space"
2017-01-13 12:42:24 +00:00
android:layout_marginLeft="@dimen/task_icon_space"
2017-01-11 22:46:26 +00:00
android:contentDescription="@string/belongs_to_challenge"
app:srcCompat="@drawable/task_icon_challenge" />
2017-01-05 17:19:06 +00:00
2017-01-11 22:46:26 +00:00
<ImageView
android:id="@+id/iconviewReminder"
2017-01-05 17:19:06 +00:00
android:layout_width="@dimen/task_icon_size"
android:layout_height="@dimen/task_icon_size"
android:layout_marginStart="@dimen/task_icon_space"
2017-01-13 12:42:24 +00:00
android:layout_marginLeft="@dimen/task_icon_space"
2017-01-11 22:46:26 +00:00
android:contentDescription="@string/has_reminder"
app:srcCompat="@drawable/task_icon_reminder" />
2017-01-05 17:19:06 +00:00
2017-01-11 22:46:26 +00:00
<ImageView
android:id="@+id/iconviewTag"
2017-01-05 17:19:06 +00:00
android:layout_width="@dimen/task_icon_size"
android:layout_height="@dimen/task_icon_size"
android:layout_marginStart="@dimen/task_icon_space"
2017-01-13 12:42:24 +00:00
android:layout_marginLeft="@dimen/task_icon_space"
2017-01-11 22:46:26 +00:00
android:contentDescription="@string/has_tag"
app:srcCompat="@drawable/task_icon_tag" />
</LinearLayout>
2017-01-05 17:19:06 +00:00
</LinearLayout>
2017-01-11 22:46:26 +00:00
<LinearLayout
android:id="@+id/checklistIndicatorWrapper"
android:layout_width="@dimen/checklist_wrapper_width"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
tools:background="@color/md_green_300">
<TextView
2016-05-12 11:44:29 +00:00
android:id="@+id/checkListCompletedTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-01-11 22:46:26 +00:00
android:gravity="center"
2016-05-12 11:44:29 +00:00
android:textColor="@color/white"
2017-01-11 22:46:26 +00:00
style="@style/Body3"
tools:text="1" />
<View
2016-05-12 11:44:29 +00:00
android:id="@+id/checklistDivider"
android:layout_width="@dimen/checklist_divider_width"
android:layout_height="@dimen/hairline_height"
2017-01-11 22:46:26 +00:00
android:background="@color/white" />
<TextView
2016-05-12 11:44:29 +00:00
android:id="@+id/checkListAllTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-01-11 22:46:26 +00:00
android:gravity="center"
2016-05-12 11:44:29 +00:00
android:textColor="@color/white"
2017-01-11 22:46:26 +00:00
style="@style/Body3"
tools:text="13" />
</LinearLayout>
</LinearLayout>
2017-01-05 17:19:06 +00:00
<View
2017-01-11 22:46:26 +00:00
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/task_border_gray" />
2017-01-05 17:19:06 +00:00
</FrameLayout>
2017-01-11 22:46:26 +00:00
2016-05-12 11:44:29 +00:00
<View
2017-01-11 22:46:26 +00:00
android:id="@+id/checklistSeparator"
android:layout_width="match_parent"
android:layout_height="@dimen/hairline_height"
android:background="@color/cell_separator" />
2016-05-12 11:44:29 +00:00
<LinearLayout
2017-01-11 22:46:26 +00:00
android:id="@+id/checklistView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
2016-05-12 11:44:29 +00:00
<View
2017-01-11 22:46:26 +00:00
android:id="@+id/checklistBottomSpace"
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="@color/checklist_separator" />
2016-03-08 19:53:03 +00:00
2016-05-12 11:44:29 +00:00
</LinearLayout>