mirror of
https://github.com/wismna/DoNext.git
synced 2025-10-03 23:50:13 -04:00
Never ask again is now a checkbox in the confirmation dialog
Next task text on confirmation dialog change New text when there are no tasks in a list Automatically open TaskList Activity when no task lists exist Confirmation on task list delete Code cleanup (new interfaces...)
This commit is contained in:
5
DoNExt/app/src/main/res/drawable/task_select.xml
Normal file
5
DoNExt/app/src/main/res/drawable/task_select.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/darker_gray" android:state_pressed="false" android:state_selected="true" />
|
||||
<item android:drawable="@android:color/white" android:state_selected="false" />
|
||||
</selector>
|
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<CheckBox
|
||||
android:id="@+id/task_confirmation_never"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/task_confirmation_never_button" />
|
||||
</LinearLayout>
|
@@ -3,7 +3,8 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/task_select" >
|
||||
<TextView
|
||||
android:id="@+id/total_task_cycles"
|
||||
android:layout_width="100dp"
|
||||
@@ -12,10 +13,9 @@
|
||||
android:layout_alignParentStart="true"/>
|
||||
<TextView
|
||||
android:id="@+id/total_task_count"
|
||||
android:layout_width="100dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true" />
|
||||
android:layout_centerHorizontal="true" />
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/task_list_view"
|
||||
android:name="com.wismna.geoffroy.donext.activities.TaskFragment"
|
||||
|
@@ -12,6 +12,8 @@
|
||||
<string name="task_list_new_list_hint">New list name</string>
|
||||
<string name="task_list_new_list_create">Create</string>
|
||||
<string name="task_list_delete">Delete</string>
|
||||
<string name="task_list_confirmation_delete">Delete task list?</string>
|
||||
|
||||
|
||||
<!-- Strings related to new task dialog -->
|
||||
<string name="new_task_list">List</string>
|
||||
@@ -27,11 +29,11 @@
|
||||
|
||||
<!-- Strings related to task details activity -->
|
||||
<string name="task_details_activity_title">Details</string>
|
||||
|
||||
<string name="task_no_tasks">Yeah! No more tasks!</string>
|
||||
|
||||
<!-- Strings related to the confirmation dialog -->
|
||||
<string name="task_confirmation_done_text">Mark task as Done?</string>
|
||||
<string name="task_confirmation_next_text">Go to next task?</string>
|
||||
<string name="task_confirmation_next_text">NEXT, do this one later?</string>
|
||||
<string name="task_confirmation_delete_text">Delete this task?</string>
|
||||
<string name="task_confirmation_done_button">Done</string>
|
||||
<string name="task_confirmation_next_button">Next</string>
|
||||
|
Reference in New Issue
Block a user