mirror of
https://github.com/wismna/DoNext.git
synced 2025-10-03 23:50:13 -04:00
Add RecyclerView Manager: finally correct swiping and scrolling handling
Add Delete Task confirmation
This commit is contained in:
83
DoNExt/app/src/main/res/layout/activity_task.xml
Normal file
83
DoNExt/app/src/main/res/layout/activity_task.xml
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="16dp"
|
||||
android:orientation="vertical"
|
||||
tools:context=".activities.MainActivity">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_task_list"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
<Spinner
|
||||
android:id="@+id/new_task_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
</Spinner>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_task_name"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
<EditText
|
||||
android:id="@+id/new_task_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_task_description"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
<EditText
|
||||
android:id="@+id/new_task_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="3"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_task_priority"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
<RadioGroup
|
||||
android:id="@+id/new_task_priority"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<RadioButton
|
||||
android:id="@+id/new_task_priority_low"
|
||||
android:text="@string/new_task_priority_low"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
</RadioButton>
|
||||
<RadioButton
|
||||
android:id="@+id/new_task_priority_normal"
|
||||
android:text="@string/new_task_priority_normal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true">
|
||||
</RadioButton>
|
||||
<RadioButton
|
||||
android:id="@+id/new_task_priority_high"
|
||||
android:text="@string/new_task_priority_high"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
</RadioButton>
|
||||
</RadioGroup>
|
||||
<LinearLayout
|
||||
android:padding="20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:orientation="horizontal" >
|
||||
<Button
|
||||
android:id="@+id/new_task_save"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_task_save" />
|
||||
<Button
|
||||
android:id="@+id/new_task_cancel"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_task_cancel"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="10dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="16dp"
|
||||
android:orientation="vertical"
|
||||
tools:context=".activities.MainActivity">
|
||||
<TextView
|
||||
|
@@ -27,16 +27,20 @@
|
||||
<string name="new_task_cancel">Cancel</string>
|
||||
<string name="new_task_delete">Delete</string>
|
||||
|
||||
<!-- String related to task details activity -->
|
||||
<!-- Strings related to task details activity -->
|
||||
<string name="task_details_activity_title">Details</string>
|
||||
|
||||
<!-- String related to task list Recycler View -->
|
||||
<string name="task_swipe_confirmation_title">Confirm</string>
|
||||
<string name="task_swipe_confirmation_done">Mark task as Done?</string>
|
||||
<string name="task_swipe_confirmation_next">Mark task as Nexted?</string>
|
||||
<string name="task_swipe_confirmation_yes">Yes</string>
|
||||
<string name="task_swipe_confirmation_no">No</string>
|
||||
<string name="task_swipe_confirmation_never">Never ask again</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_delete_text">Delete this task?</string>
|
||||
<string name="task_confirmation_done_button">Done</string>
|
||||
<string name="task_confirmation_next_button">Next</string>
|
||||
<string name="task_confirmation_delete_button">Delete</string>
|
||||
<string name="task_confirmation_yes_button">Yes</string>
|
||||
<string name="task_confirmation_no_button">No</string>
|
||||
<string name="task_confirmation_never_button">Never ask again</string>
|
||||
|
||||
<!-- Strings related to Settings -->
|
||||
<string name="settings_confirm_message">Mark task as</string>
|
||||
|
Reference in New Issue
Block a user