2015-12-25 17:19:20 +00:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-07-27 14:48:18 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/scrollView"
|
2015-07-27 14:48:18 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_height="match_parent">
|
2015-07-27 14:48:18 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/task_main_wrapper"
|
2015-07-27 14:48:18 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="@dimen/abc_action_bar_content_inset_material">
|
|
|
|
|
|
2015-12-02 20:45:27 +00:00
|
|
|
<LinearLayout
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/task_task_wrapper"
|
2015-07-27 14:48:18 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_marginTop="@dimen/abc_action_bar_content_inset_material"
|
|
|
|
|
android:orientation="vertical">
|
2015-12-02 20:45:27 +00:00
|
|
|
|
2016-01-11 21:53:40 +00:00
|
|
|
<LinearLayout
|
2015-07-27 14:48:18 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_height="72dp"
|
2016-01-11 21:53:40 +00:00
|
|
|
android:orientation="horizontal">
|
2015-12-02 20:45:27 +00:00
|
|
|
|
2016-01-11 21:53:40 +00:00
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/emoji.toggle.btn0"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:src="@drawable/ic_emoticon_grey600_24dp"
|
|
|
|
|
android:background="@drawable/md_transparent"
|
|
|
|
|
android:contentDescription="Toogle Emoji" />
|
|
|
|
|
|
|
|
|
|
<android.support.design.widget.TextInputLayout
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-01-11 21:53:40 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.AppCompat">
|
|
|
|
|
|
|
|
|
|
<com.github.data5tream.emojilib.EmojiEditText
|
|
|
|
|
android:id="@+id/task_text_edittext"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:hint="@string/text"
|
|
|
|
|
android:textColor="@android:color/black" />
|
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
|
</LinearLayout>
|
2015-12-02 20:45:27 +00:00
|
|
|
|
2016-01-11 21:53:40 +00:00
|
|
|
<LinearLayout
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="72dp"
|
2016-01-11 21:53:40 +00:00
|
|
|
android:orientation="horizontal">
|
2015-12-25 13:27:37 +00:00
|
|
|
|
2016-01-11 21:53:40 +00:00
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/emoji.toggle.btn1"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:src="@drawable/ic_emoticon_grey600_24dp"
|
|
|
|
|
android:background="@drawable/md_transparent"
|
|
|
|
|
android:contentDescription="Toogle Emoji" />
|
|
|
|
|
|
|
|
|
|
<android.support.design.widget.TextInputLayout
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-01-11 21:53:40 +00:00
|
|
|
android:layout_height="72dp"
|
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.AppCompat">
|
|
|
|
|
|
|
|
|
|
<com.github.data5tream.emojilib.EmojiEditText
|
|
|
|
|
android:id="@+id/task_notes_edittext"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:hint="@string/notes"
|
|
|
|
|
android:textColor="@android:color/black" />
|
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
|
</LinearLayout>
|
2015-12-25 13:27:37 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
|
android:id="@+id/task_value_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="72dp"
|
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.AppCompat">
|
2015-12-25 13:27:37 +00:00
|
|
|
|
2015-12-26 15:21:21 +00:00
|
|
|
<com.github.data5tream.emojilib.EmojiEditText
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/task_value_edittext"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:hint="@string/task_value"
|
|
|
|
|
android:textColor="@android:color/black"
|
|
|
|
|
android:numeric="decimal" />
|
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
2015-12-05 22:12:03 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-05 19:20:52 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:id="@+id/task_difficulty_wrapper">
|
2015-12-02 20:45:27 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/textView2"
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:text="@string/difficulty"
|
2015-12-05 22:12:03 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2015-12-02 20:45:27 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<Spinner
|
|
|
|
|
android:id="@+id/task_difficulty_spinner"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content" />
|
2015-12-02 20:45:27 +00:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/task_actions_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView5"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/actions"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-05 19:20:52 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:orientation="horizontal">
|
2015-12-02 20:45:27 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/textView7"
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="11dp"
|
|
|
|
|
android:layout_toLeftOf="@+id/task_positive_checkbox"
|
|
|
|
|
android:text="@string/positive_habit_form"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/task_positive_checkbox"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="0dp" />
|
|
|
|
|
</RelativeLayout>
|
2015-12-25 13:27:37 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<RelativeLayout
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-12-05 19:20:52 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:orientation="horizontal">
|
2015-12-02 20:45:27 +00:00
|
|
|
|
|
|
|
|
<TextView
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/textView8"
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="11dp"
|
|
|
|
|
android:layout_toLeftOf="@+id/task_negative_checkbox"
|
|
|
|
|
android:text="@string/negative_habit_form"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/task_negative_checkbox"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_marginTop="0dp" />
|
|
|
|
|
</RelativeLayout>
|
2015-07-27 14:48:18 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
</LinearLayout>
|
2015-07-27 14:48:18 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/task_checklist_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="30dp"
|
|
|
|
|
android:orientation="vertical">
|
2015-07-27 14:48:18 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView9"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
android:text="@string/checklist"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2015-07-27 14:48:18 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
|
android:id="@+id/checklist_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
2015-07-27 14:48:18 +00:00
|
|
|
|
2015-12-02 20:45:27 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="horizontal">
|
2015-12-02 20:45:27 +00:00
|
|
|
|
2016-01-11 21:53:40 +00:00
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/emoji.toggle.btn2"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:src="@drawable/ic_emoticon_grey600_24dp"
|
|
|
|
|
android:background="@drawable/md_transparent"
|
|
|
|
|
android:contentDescription="Toogle Emoji" />
|
|
|
|
|
|
2015-12-26 15:21:21 +00:00
|
|
|
<com.github.data5tream.emojilib.EmojiEditText
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/new_checklist"
|
|
|
|
|
android:layout_width="0dp"
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:hint="@string/new_checklist_item" />
|
2015-12-02 20:45:27 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/add_checklist_button"
|
|
|
|
|
style="?android:attr/buttonStyleSmall"
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-12-25 17:19:20 +00:00
|
|
|
android:text="@string/add_checklist_item" />
|
2015-12-25 13:27:37 +00:00
|
|
|
</LinearLayout>
|
2015-07-27 14:48:18 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/task_weekdays_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="30dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView10"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/frequency"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
|
android:id="@+id/task_frequency_spinner"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="72dp" />
|
|
|
|
|
|
2015-12-02 20:45:27 +00:00
|
|
|
<LinearLayout
|
2015-12-25 17:19:20 +00:00
|
|
|
android:id="@+id/task_frequency_container"
|
2015-12-02 20:45:27 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
2015-08-03 13:51:04 +00:00
|
|
|
|
2015-12-25 13:27:37 +00:00
|
|
|
</LinearLayout>
|
2015-12-03 20:41:03 +00:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/task_startdate_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="140dp"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:text="@string/start_date"
|
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
|
|
|
|
|
|
<DatePicker
|
|
|
|
|
android:id="@+id/task_startdate_picker"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:calendarViewShown="false"
|
|
|
|
|
android:datePickerMode="spinner" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/task_delete_wrapper"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_marginTop="@dimen/abc_action_bar_content_inset_material"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/btn.delete.task"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:drawableRight="@drawable/ic_action_delete_white_24"
|
|
|
|
|
android:text="@string/action_delete"
|
|
|
|
|
android:textColor="@color/white" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
2015-12-03 20:41:03 +00:00
|
|
|
|
2015-12-25 17:19:20 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
</ScrollView>
|