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

270 lines
14 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"
2022-11-22 14:48:15 +00:00
android:background="?attr/colorTintedBackground"
2021-06-04 14:11:48 +00:00
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity">
2019-03-28 13:45:16 +00:00
<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"
2022-12-21 13:52:36 +00:00
style="@style/ToolbarTitleStyle"
2019-03-28 13:45:16 +00:00
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: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
2020-07-24 10:19:56 +00:00
android:id="@+id/text_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-07-24 10:19:56 +00:00
style="@style/TaskFormTextInputLayoutAppearance"
2022-05-09 04:42:18 +00:00
app:boxStrokeWidth="2dp"
app:boxStrokeWidthFocused="2dp"
2020-09-17 15:58:59 +00:00
app:hintTextColor="?colorPrimaryText"
android:backgroundTint="?attr/colorPrimaryText"
2021-05-18 08:41:05 +00:00
android:hint="@string/task_title"
2020-07-24 10:19:56 +00:00
android:alpha="0.75">
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"
2020-07-28 10:31:49 +00:00
android:textColor="?attr/colorPrimaryText"
2019-06-13 09:04:34 +00:00
android:inputType="textCapSentences|textAutoCorrect"/>
2018-11-06 15:11:02 +00:00
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
2020-07-24 10:19:56 +00:00
android:id="@+id/notes_input_layout"
android:layout_width="match_parent"
2020-07-24 10:19:56 +00:00
android:layout_height="wrap_content"
style="@style/TaskFormTextInputLayoutAppearance"
2022-05-09 04:42:18 +00:00
app:boxStrokeWidth="2dp"
app:boxStrokeWidthFocused="2dp"
2020-09-17 15:58:59 +00:00
android:backgroundTint="?attr/colorPrimaryText"
app:hintTextColor="?colorPrimaryText"
2021-05-18 08:41:05 +00:00
android:hint="@string/notes"
android:layout_marginTop="@dimen/spacing_large"
2020-07-24 10:19:56 +00:00
android:alpha="0.75">
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"
2019-03-28 13:45:16 +00:00
android:minLines="3"
2019-06-13 09:04:34 +00:00
android:gravity="top"
2020-07-28 10:31:49 +00:00
android:textColor="?attr/colorPrimaryText"
2019-06-13 09:04:34 +00:00
android:inputType="textCapSentences|textAutoCorrect|textMultiLine"/>
2018-11-06 15:11:02 +00:00
</com.google.android.material.textfield.TextInputLayout>
<TextView
android:id="@+id/challenge_name_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
style="@style/Caption1"
android:gravity="center"
2020-09-04 16:17:34 +00:00
android:textColor="@color/text_primary"
tools:visibility="visible"
tools:text="Challenge Name"/>
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">
2022-11-28 12:26:18 +00:00
<androidx.compose.ui.platform.ComposeView
2019-03-28 13:45:16 +00:00
android:id="@+id/habit_scoring_buttons"
android:layout_width="match_parent"
2022-11-28 12:26:18 +00:00
android:layout_height="wrap_content"
android:layout_marginTop="20dp" />
2019-04-05 09:16:44 +00:00
<TextView
android:id="@+id/reward_value_title_view"
2019-04-05 09:16:44 +00:00
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"/>
2020-04-02 11:55:16 +00:00
<com.habitrpg.android.habitica.ui.views.tasks.form.StepperValueFormView
2019-04-05 09:16:44 +00:00
android:id="@+id/reward_value"
android:layout_width="match_parent"
android:layout_height="56dp" />
<TextView
android:id="@+id/checklist_title_view"
2019-04-04 10:31:27 +00:00
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_view"
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"/>
2022-11-22 14:48:15 +00:00
<androidx.compose.ui.platform.ComposeView
2019-03-28 13:45:16 +00:00
android:id="@+id/task_difficulty_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2022-11-22 14:48:15 +00:00
<TextView
android:id="@+id/assign_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/assign"
style="@style/TaskFormSectionheader" />
<androidx.compose.ui.platform.ComposeView
android:id="@+id/assign_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/habit_reset_streak_title_view"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-09-22 09:26:01 +00:00
android:text="@string/reset_counter"
2019-03-28 13:45:16 +00:00
style="@style/TaskFormSectionheader"/>
2022-11-28 12:26:18 +00:00
<androidx.compose.ui.platform.ComposeView
2019-03-28 13:45:16 +00:00
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_view"
2019-04-04 10:31:27 +00:00
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/task_scheduling_controls"
2019-04-04 10:31:27 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/adjust_streak_title_view"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-09-22 09:26:01 +00:00
android:text="@string/adjust_counter"
2019-03-28 13:45:16 +00:00
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:id="@+id/habit_adjust_positive_input_layout"
2019-03-28 13:45:16 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
2023-01-18 13:11:33 +00:00
android:background="@drawable/task_form_control_bg"
2021-05-18 08:41:05 +00:00
android:hint="@string/positive_habit_form"
2019-03-28 13:45:16 +00:00
android:layout_weight="1">
2019-05-06 10:47:52 +00:00
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/habit_adjust_positive_streak_view"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-01-18 14:21:44 +00:00
android:background="@color/transparent"
2019-03-28 13:45:16 +00:00
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"
2021-05-18 08:41:05 +00:00
android:hint="@string/negative_habit_form"
2023-01-18 13:11:33 +00:00
android:background="@drawable/task_form_control_bg"
2019-03-28 13:45:16 +00:00
android:layout_weight="1">
2019-05-06 10:47:52 +00:00
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/habit_adjust_negative_streak_view"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-01-18 14:21:44 +00:00
android:background="@color/transparent"
2019-03-28 13:45:16 +00:00
android:inputType="number"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
2019-04-04 10:31:27 +00:00
<TextView
android:id="@+id/reminders_title_view"
2019-04-04 10:31:27 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/reminders"
style="@style/TaskFormSectionheader"/>
<RelativeLayout
android:id="@+id/notifications_disabled_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/spacing_medium">
<TextView
android:id="@+id/notifications_enabled_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="@dimen/spacing_medium"
2023-01-09 12:46:12 +00:00
android:text="@string/push_notification_system_settings_reminders"
android:textColor="@color/text_quad"
android:textSize="12sp" />
</RelativeLayout>
2019-04-04 10:31:27 +00:00
<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"/>
2022-11-28 12:26:18 +00:00
<androidx.compose.ui.platform.ComposeView
android:id="@+id/stats_selector"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
2022-11-28 12:26:18 +00:00
android:layout_height="wrap_content" />
2019-03-28 13:45:16 +00:00
</LinearLayout>
<TextView
android:id="@+id/tags_title_view"
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>