habitica-android/Habitica/res/layout/activity_task_form.xml

247 lines
13 KiB
XML
Raw Normal View History

2019-03-28 13:45:16 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
2019-03-28 13:45:16 +00:00
xmlns:tools="http://schemas.android.com/tools"
2015-07-27 14:48:18 +00:00
android:layout_width="match_parent"
2019-03-28 13:45:16 +00:00
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity"
android:background="@color/white">
<com.google.android.material.appbar.AppBarLayout
2015-07-27 14:48:18 +00:00
android:layout_width="match_parent"
2019-03-28 13:45:16 +00:00
android:layout_height="wrap_content">
2015-07-27 14:48:18 +00:00
2019-03-28 13:45:16 +00:00
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
2015-07-27 14:48:18 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-28 13:45:16 +00:00
android:minHeight="?attr/actionBarSize"
android:theme="@style/Toolbar"
android:background="@color/brand_300"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"/>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
2019-04-29 13:53:05 +00:00
android:id="@+id/scroll_view"
2019-03-28 13:45:16 +00:00
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:paddingBottom="@dimen/spacing_large">
<LinearLayout
android:id="@+id/upper_text_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:background="@color/brand_300"
android:orientation="vertical"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:paddingBottom="@dimen/spacing_large">
2018-11-06 15:11:02 +00:00
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-28 13:45:16 +00:00
style="@style/TaskFormTextInputLayoutAppearance">
2019-05-06 10:47:52 +00:00
<androidx.appcompat.widget.AppCompatEditText
2019-03-28 13:45:16 +00:00
android:id="@+id/text_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-13 09:04:34 +00:00
android:hint="@string/task_title"
android:inputType="textCapSentences|textAutoCorrect"/>
2018-11-06 15:11:02 +00:00
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
2019-03-28 13:45:16 +00:00
style="@style/TaskFormTextInputLayoutAppearance"
android:layout_width="match_parent"
2019-03-28 13:45:16 +00:00
android:layout_height="wrap_content">
2019-05-06 10:47:52 +00:00
<androidx.appcompat.widget.AppCompatEditText
2019-03-28 13:45:16 +00:00
android:id="@+id/notes_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/notes"
2019-03-28 13:45:16 +00:00
android:minLines="3"
2019-06-13 09:04:34 +00:00
android:gravity="top"
android:inputType="textCapSentences|textAutoCorrect|textMultiLine"/>
2018-11-06 15:11:02 +00:00
</com.google.android.material.textfield.TextInputLayout>
2019-03-28 13:45:16 +00:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2019-03-28 13:45:16 +00:00
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large">
<com.habitrpg.android.habitica.ui.views.tasks.form.HabitScoringButtonsView
android:id="@+id/habit_scoring_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2019-04-05 09:16:44 +00:00
<TextView
android:id="@+id/reward_value_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-04-29 13:53:05 +00:00
android:text="@string/cost"
2019-04-05 09:16:44 +00:00
style="@style/TaskFormSectionheader"/>
<com.habitrpg.android.habitica.ui.views.tasks.form.RewardValueFormView
android:id="@+id/reward_value"
android:layout_width="match_parent"
android:layout_height="56dp" />
<TextView
2019-04-04 10:31:27 +00:00
android:id="@+id/checklist_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/checklist"
style="@style/TaskFormSectionheader"/>
<com.habitrpg.android.habitica.ui.views.tasks.form.ChecklistContainer
android:id="@+id/checklist_container"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/task_difficulty_title"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/difficulty"
2019-03-28 13:45:16 +00:00
style="@style/TaskFormSectionheader"/>
<com.habitrpg.android.habitica.ui.views.tasks.form.TaskDifficultyButtons
android:id="@+id/task_difficulty_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
2019-03-28 13:45:16 +00:00
android:id="@+id/habit_reset_streak_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-28 13:45:16 +00:00
android:text="@string/reset_streak"
style="@style/TaskFormSectionheader"/>
<com.habitrpg.android.habitica.ui.views.tasks.form.HabitResetStreakButtons
android:id="@+id/habit_reset_streak_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2019-04-04 10:31:27 +00:00
<TextView
android:id="@+id/scheduling_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/scheduling"
style="@style/TaskFormSectionheader"/>
<com.habitrpg.android.habitica.ui.views.tasks.form.TaskSchedulingControls
android:id="@+id/scheduling_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
2019-03-28 13:45:16 +00:00
android:id="@+id/adjust_streak_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-28 13:45:16 +00:00
android:text="@string/adjust_streak"
style="@style/TaskFormSectionheader"/>
<LinearLayout
android:id="@+id/adjust_streak_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputLayout
style="@style/TextInputLayoutAppearance"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
2019-05-06 10:47:52 +00:00
<androidx.appcompat.widget.AppCompatEditText
2019-03-28 13:45:16 +00:00
android:id="@+id/habit_adjust_positive_streak"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/positive_habit_form"
android:inputType="number" />
</com.google.android.material.textfield.TextInputLayout>
<Space
android:layout_width="22dp"
android:layout_height="wrap_content" />
<com.google.android.material.textfield.TextInputLayout
style="@style/TextInputLayoutAppearance"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
2019-05-06 10:47:52 +00:00
<androidx.appcompat.widget.AppCompatEditText
2019-03-28 13:45:16 +00:00
android:id="@+id/habit_adjust_negative_streak"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/negative_habit_form"
android:inputType="number"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
2019-04-04 10:31:27 +00:00
<TextView
android:id="@+id/reminders_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/reminders"
style="@style/TaskFormSectionheader"/>
<com.habitrpg.android.habitica.ui.views.tasks.form.ReminderContainer
android:id="@+id/reminders_container"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2019-03-28 13:45:16 +00:00
<LinearLayout
android:id="@+id/stat_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-28 13:45:16 +00:00
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/assigned_stat"
style="@style/TaskFormSectionheader"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/spacing_large">
<TextView
android:id="@+id/stat_strength_button"
style="@style/TaskFormToggle"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/strength"
android:layout_marginRight="@dimen/spacing_large"/>
<TextView
android:id="@+id/stat_constitution_button"
style="@style/TaskFormToggle"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/constitution"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/stat_intelligence_button"
style="@style/TaskFormToggle"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/intelligence"
android:layout_marginRight="@dimen/spacing_large"/>
<TextView
android:id="@+id/stat_perception_button"
style="@style/TaskFormToggle"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/perception"/>
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/tags_title"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-28 13:45:16 +00:00
android:text="@string/tags"
style="@style/TaskFormSectionheader"/>
<LinearLayout
android:id="@+id/tags_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:showDividers="middle"
android:divider="@drawable/tag_divider"/>
</LinearLayout>
</LinearLayout>
2019-03-28 13:45:16 +00:00
</androidx.core.widget.NestedScrollView>
</LinearLayout>