2015-06-20 18:46:04 +00:00
|
|
|
<?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"
|
2017-09-26 13:35:32 +00:00
|
|
|
android:layout_height="wrap_content">
|
2017-01-11 22:46:26 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-06-20 18:46:04 +00:00
|
|
|
android:id="@+id/card_view"
|
|
|
|
|
android:layout_width="match_parent"
|
2015-11-07 18:10:03 +00:00
|
|
|
android:layout_height="match_parent"
|
2017-09-05 14:47:13 +00:00
|
|
|
android:orientation="horizontal"
|
2017-09-26 13:35:32 +00:00
|
|
|
android:baselineAligned="false"
|
|
|
|
|
android:minHeight="@dimen/task_min_height">
|
2017-01-11 22:46:26 +00:00
|
|
|
|
|
|
|
|
<FrameLayout
|
2016-05-10 14:07:12 +00:00
|
|
|
android:id="@+id/checkBoxHolder"
|
2015-11-07 18:10:03 +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
|
2016-05-10 14:07:12 +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"
|
2016-05-10 14:07:12 +00:00
|
|
|
android:button="@drawable/todo_checkbox"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:gravity="center" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-05-12 11:44:29 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_weight="1"
|
2016-05-12 11:44:29 +00:00
|
|
|
android:orientation="vertical"
|
2017-01-11 22:46:26 +00:00
|
|
|
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">
|
|
|
|
|
|
2018-08-27 13:54:44 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.EllipsisTextView
|
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"
|
2015-06-29 16:24:44 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-07-16 14:53:37 +00:00
|
|
|
tools:text="To Do Title" />
|
2015-06-20 18:46:04 +00:00
|
|
|
|
2018-08-27 13:54:44 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.EllipsisTextView
|
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"
|
2016-05-12 12:41:38 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:maxLines="3"
|
2018-08-27 13:54:44 +00:00
|
|
|
android:ellipsize="end"
|
2017-01-11 22:46:26 +00:00
|
|
|
tools:text="Notes" />
|
|
|
|
|
|
2018-08-27 13:54:44 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/expand_notes_button"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
|
|
|
|
android:text="@string/expand_notes"
|
|
|
|
|
android:padding="0dp"
|
2019-08-07 08:29:58 +00:00
|
|
|
android:textColor="?colorAccent"/>
|
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"
|
|
|
|
|
style="@style/Caption3"
|
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-05 17:19:06 +00:00
|
|
|
android:textColor="@color/task_secondary_text"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:visibility="invisible"
|
|
|
|
|
tools:visibility="visible"
|
2020-06-22 13:13:04 +00:00
|
|
|
android:scaleType="center"
|
2017-01-11 22:46:26 +00:00
|
|
|
tools:text="special" />
|
|
|
|
|
|
|
|
|
|
<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"
|
2020-06-22 13:13:04 +00:00
|
|
|
android:scaleType="center"
|
2020-06-18 10:28:14 +00:00
|
|
|
app:srcCompat="@drawable/task_megaphone" />
|
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"
|
2020-06-22 13:13:04 +00:00
|
|
|
android:scaleType="center"
|
2017-01-11 22:46:26 +00:00
|
|
|
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"
|
2020-06-22 13:13:04 +00:00
|
|
|
android:scaleType="center"
|
2017-01-11 22:46:26 +00:00
|
|
|
app:srcCompat="@drawable/task_icon_tag" />
|
|
|
|
|
</LinearLayout>
|
2017-01-05 17:19:06 +00:00
|
|
|
</LinearLayout>
|
2017-01-11 22:46:26 +00:00
|
|
|
|
2018-08-28 11:45:11 +00:00
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/syncing_view"
|
|
|
|
|
android:layout_width="20dp"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginLeft="@dimen/spacing_small"
|
|
|
|
|
android:layout_marginRight="@dimen/spacing_small"
|
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"/>
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/error_icon"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:src="@drawable/ic_warning_black"
|
|
|
|
|
android:layout_marginLeft="@dimen/spacing_small"
|
|
|
|
|
android:layout_marginRight="@dimen/spacing_small"/>
|
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"
|
2020-06-18 10:28:14 +00:00
|
|
|
android:orientation="vertical">
|
2017-01-11 22:46:26 +00:00
|
|
|
|
|
|
|
|
<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-10 14:07:12 +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-10 14:07:12 +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-10 14:07:12 +00:00
|
|
|
</LinearLayout>
|