diff --git a/Habitica/res/layout/daily_item_card.xml b/Habitica/res/layout/daily_item_card.xml
index 8f44cee90..9ac52749c 100644
--- a/Habitica/res/layout/daily_item_card.xml
+++ b/Habitica/res/layout/daily_item_card.xml
@@ -1,158 +1,189 @@
-
+
+
-
+
+
-
-
-
+
+
-
-
-
-
+ android:gravity="center" />
+
+
+
+ tools:text="Daily Title" />
-
+
+
+
+
-
+
+
-
+
+
-
-
+
+
-
-
+ android:contentDescription="@string/has_reminder"
+ app:srcCompat="@drawable/task_icon_reminder" />
+
+
+
-
-
-
+
+
-
+
+
-
+
+
-
-
+
+
+
-
+
+
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_gravity="bottom"
+ android:background="@color/task_border_gray" />
+
+ android:id="@+id/checklistSeparator"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/hairline_height"
+ android:background="@color/cell_separator" />
+
+ android:id="@+id/checklistView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" />
+
+ android:id="@+id/checklistBottomSpace"
+ android:layout_width="match_parent"
+ android:layout_height="10dp"
+ android:background="@color/checklist_separator" />
diff --git a/Habitica/res/layout/dialog_challenge_detail_daily.xml b/Habitica/res/layout/dialog_challenge_detail_daily.xml
index a10af58d7..e83551d2e 100644
--- a/Habitica/res/layout/dialog_challenge_detail_daily.xml
+++ b/Habitica/res/layout/dialog_challenge_detail_daily.xml
@@ -45,7 +45,7 @@
@@ -59,7 +59,7 @@
tools:visibility="visible">
@@ -59,7 +59,7 @@
tools:visibility="visible">
-
+
+
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@color/white"
+ android:baselineAligned="false"
+ android:foreground="?selectableItemBackground"
+ android:orientation="horizontal">
+
+ android:id="@+id/btnPlusWrapper"
+ android:layout_width="54dp"
+ android:layout_height="match_parent">
+
+ android:layout_width="1dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="end"
+ android:layout_marginBottom="1dp"
+ android:background="@color/task_border_gray" />
+
+ android:id="@+id/btnPlusIconView"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:layout_gravity="center"
+ android:scaleType="center"
+ android:src="@drawable/habit_plus" />
+
+ android:id="@+id/btnPlus"
+ style="@style/HabitButton"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/selection_highlight" />
+
-
+ 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">
+ android:id="@+id/checkedTextView"
+ style="@style/Subheader3"
+ android:textColor="#000"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ tools:text="Habit Title" />
+
+
+ android:id="@+id/taskIconWrapper"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/task_icon_space"
+ android:orientation="horizontal">
+ 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" />
+ 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"
+ app:srcCompat="@drawable/task_icon_challenge" />
+ 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"
+ app:srcCompat="@drawable/task_icon_reminder" />
+ 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"
+ app:srcCompat="@drawable/task_icon_tag" />
+ android:id="@+id/btnMinusWrapper"
+ android:layout_width="54dp"
+ android:layout_height="match_parent">
+
+ android:layout_width="1dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="start"
+ android:layout_marginBottom="1dp"
+ android:background="@color/task_border_gray" />
+
+ android:id="@+id/btnMinusIconView"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:layout_gravity="center"
+ android:scaleType="center"
+ android:src="@drawable/habit_minus" />
+
+ android:id="@+id/btnMinus"
+ style="@style/HabitButton"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/selection_highlight" />
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_gravity="bottom"
+ android:background="@color/task_border_gray" />
diff --git a/Habitica/res/layout/reward_item_card.xml b/Habitica/res/layout/reward_item_card.xml
index 1624a757e..a7b27cd64 100644
--- a/Habitica/res/layout/reward_item_card.xml
+++ b/Habitica/res/layout/reward_item_card.xml
@@ -1,57 +1,73 @@
-
+
+
-
+ android:clickable="false"
+ android:orientation="horizontal">
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Habitica/res/layout/todo_item_card.xml b/Habitica/res/layout/todo_item_card.xml
index 5274b7b83..1032b77a3 100644
--- a/Habitica/res/layout/todo_item_card.xml
+++ b/Habitica/res/layout/todo_item_card.xml
@@ -1,144 +1,174 @@
-
+
+
-
+
+
-
-
-
+
+
-
-
+
+
+
-
+
+
+ android:layout_height="wrap_content"
+ tools:text="To-Do Title" />
-
-
+ android:maxLines="3"
+ tools:text="Notes" />
-
+
+
-
+
+
-
-
+
+
-
-
+ android:contentDescription="@string/has_reminder"
+ app:srcCompat="@drawable/task_icon_reminder" />
+
+
+
-
-
-
+
+
-
+
+
-
+
+
-
-
+
+
+
-
+
+
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_gravity="bottom"
+ android:background="@color/task_border_gray" />
+
+ android:id="@+id/checklistView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" />
+
+ android:id="@+id/checklistBottomSpace"
+ android:layout_width="match_parent"
+ android:layout_height="10dp"
+ android:background="@color/checklist_separator" />
diff --git a/Habitica/res/values/styles.habitica.xml b/Habitica/res/values/styles.habitica.xml
index 45747a477..f8c71aaec 100644
--- a/Habitica/res/values/styles.habitica.xml
+++ b/Habitica/res/values/styles.habitica.xml
@@ -8,39 +8,61 @@
sans-serif-black
sans-serif-thin
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/social/challenges/ChallengeTaskRecyclerViewFragment.java b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/social/challenges/ChallengeTaskRecyclerViewFragment.java
index 8a1ce4068..74961f101 100644
--- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/social/challenges/ChallengeTaskRecyclerViewFragment.java
+++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/social/challenges/ChallengeTaskRecyclerViewFragment.java
@@ -165,11 +165,16 @@ public class ChallengeTaskRecyclerViewFragment extends BaseFragment {
// region Challenge specific RecyclerViewAdapters
- private class ChallengeHabitsRecyclerViewAdapter extends SortableTasksRecyclerViewAdapter {
+ public class ChallengeHabitsRecyclerViewAdapter extends SortableTasksRecyclerViewAdapter {
public ChallengeHabitsRecyclerViewAdapter(String taskType, TagsHelper tagsHelper, int layoutResource, Context newContext, String userID, SortTasksCallback sortCallback) {
super(taskType, tagsHelper, layoutResource, newContext, userID, sortCallback);
}
+ @Override
+ protected void injectThis(AppComponent component) {
+ component.inject(this);
+ }
+
@Override
public boolean loadFromDatabase() {
return false;
@@ -194,6 +199,11 @@ public class ChallengeTaskRecyclerViewFragment extends BaseFragment {
this.dailyResetOffset = dailyResetOffset;
}
+ @Override
+ protected void injectThis(AppComponent component) {
+ component.inject(this);
+ }
+
@Override
public boolean loadFromDatabase() {
return false;
@@ -214,6 +224,11 @@ public class ChallengeTaskRecyclerViewFragment extends BaseFragment {
super(taskType, tagsHelper, layoutResource, newContext, userID, sortCallback);
}
+ @Override
+ protected void injectThis(AppComponent component) {
+ component.inject(this);
+ }
+
@Override
public boolean loadFromDatabase() {
return false;
@@ -233,6 +248,11 @@ public class ChallengeTaskRecyclerViewFragment extends BaseFragment {
super(taskType, tagsHelper, layoutResource, newContext, user.getId());
}
+ @Override
+ protected void injectThis(AppComponent component) {
+ component.inject(this);
+ }
+
@Override
public boolean loadFromDatabase() {
return false;
diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewHolders/tasks/BaseTaskViewHolder.java b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewHolders/tasks/BaseTaskViewHolder.java
index fab70d986..d230784d0 100644
--- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewHolders/tasks/BaseTaskViewHolder.java
+++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewHolders/tasks/BaseTaskViewHolder.java
@@ -67,7 +67,6 @@ public class BaseTaskViewHolder extends RecyclerView.ViewHolder implements View.
itemView.setOnClickListener(this);
itemView.setClickable(true);
- itemView.setEnabled(false);
ButterKnife.bind(this, itemView);