2015-06-20 18:46:04 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-01-11 22:46:26 +00:00
|
|
|
<FrameLayout 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"
|
2017-09-26 13:35:32 +00:00
|
|
|
android:layout_height="wrap_content">
|
2017-01-11 22:46:26 +00:00
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<LinearLayout
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/white"
|
|
|
|
|
android:baselineAligned="false"
|
|
|
|
|
android:foreground="?selectableItemBackground"
|
2017-09-26 13:35:32 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:minHeight="@dimen/task_min_height">
|
2017-01-11 22:46:26 +00:00
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<FrameLayout
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/btnPlusWrapper"
|
2017-01-12 20:44:40 +00:00
|
|
|
android:layout_width="@dimen/button_width"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<View
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_width="1dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_gravity="end"
|
|
|
|
|
android:layout_marginBottom="1dp"
|
|
|
|
|
android:background="@color/task_border_gray" />
|
|
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<ImageView
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/btnPlusIconView"
|
2019-10-24 13:19:02 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/habit_plus" />
|
|
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<Button
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/btnPlus"
|
|
|
|
|
style="@style/HabitButton"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2020-05-04 15:25:14 +00:00
|
|
|
android:background="@drawable/selection_highlight"
|
|
|
|
|
android:contentDescription="@string/positive_habit_form" />
|
2017-01-05 17:19:06 +00:00
|
|
|
</FrameLayout>
|
2017-01-11 22:46:26 +00:00
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<LinearLayout
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingBottom="@dimen/task_top_bottom_padding"
|
|
|
|
|
android:paddingEnd="@dimen/task_text_padding"
|
|
|
|
|
android:paddingLeft="@dimen/task_text_padding"
|
|
|
|
|
android:paddingRight="@dimen/task_text_padding"
|
|
|
|
|
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
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/checkedTextView"
|
|
|
|
|
style="@style/Subheader3"
|
|
|
|
|
android:textColor="#000"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:text="Habit Title" />
|
2017-01-05 17:19:06 +00:00
|
|
|
|
2018-08-27 13:54:44 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.EllipsisTextView
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/notesTextView"
|
2017-01-16 17:14:28 +00:00
|
|
|
style="@style/Caption2.Regular"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
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"/>
|
2017-01-05 17:19:06 +00:00
|
|
|
|
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-11-01 16:39:10 +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-05 17:19:06 +00:00
|
|
|
<LinearLayout
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/taskIconWrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/task_icon_space"
|
|
|
|
|
android:orientation="horizontal">
|
2015-06-20 18:46:04 +00:00
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<TextView
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/specialTaskText"
|
|
|
|
|
style="@style/Caption3"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:textColor="@color/task_secondary_text"
|
|
|
|
|
tools:text="special" />
|
2017-01-05 17:19:06 +00:00
|
|
|
|
2017-09-25 10:02:11 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/streakTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="@dimen/task_icon_size"
|
|
|
|
|
android:layout_marginStart="@dimen/task_icon_space"
|
|
|
|
|
android:layout_marginLeft="@dimen/task_icon_space"
|
|
|
|
|
android:drawableStart="@drawable/task_icon_streak"
|
|
|
|
|
android:drawableLeft="@drawable/task_icon_streak"
|
|
|
|
|
android:textColor="@color/task_secondary_text"
|
|
|
|
|
tools:text="10"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
style="@style/Caption3" />
|
|
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<ImageView
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/iconviewChallenge"
|
|
|
|
|
android:layout_width="@dimen/task_icon_size"
|
|
|
|
|
android:layout_height="@dimen/task_icon_size"
|
|
|
|
|
android:layout_marginStart="@dimen/task_icon_space"
|
|
|
|
|
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
|
|
|
|
|
|
|
|
<ImageView
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/iconviewReminder"
|
|
|
|
|
android:layout_width="@dimen/task_icon_size"
|
|
|
|
|
android:layout_height="@dimen/task_icon_size"
|
|
|
|
|
android:layout_marginStart="@dimen/task_icon_space"
|
|
|
|
|
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
|
|
|
|
|
|
|
|
<ImageView
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/iconviewTag"
|
|
|
|
|
android:layout_width="@dimen/task_icon_size"
|
|
|
|
|
android:layout_height="@dimen/task_icon_size"
|
|
|
|
|
android:layout_marginStart="@dimen/task_icon_space"
|
|
|
|
|
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" />
|
2017-01-05 17:19:06 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
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-05 17:19:06 +00:00
|
|
|
<FrameLayout
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/btnMinusWrapper"
|
2017-01-12 20:44:40 +00:00
|
|
|
android:layout_width="@dimen/button_width"
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<View
|
2017-01-11 22:46:26 +00:00
|
|
|
android:layout_width="1dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_gravity="start"
|
|
|
|
|
android:layout_marginBottom="1dp"
|
|
|
|
|
android:background="@color/task_border_gray" />
|
|
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<ImageView
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/btnMinusIconView"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:scaleType="center"
|
|
|
|
|
android:src="@drawable/habit_minus" />
|
|
|
|
|
|
2017-01-05 17:19:06 +00:00
|
|
|
<Button
|
2017-01-11 22:46:26 +00:00
|
|
|
android:id="@+id/btnMinus"
|
|
|
|
|
style="@style/HabitButton"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2020-05-04 15:25:14 +00:00
|
|
|
android:background="@drawable/selection_highlight"
|
|
|
|
|
android:contentDescription="@string/negative_habit_form" />
|
2017-01-05 17:19:06 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<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>
|