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

323 lines
16 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"
2025-01-30 10:29:45 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2015-07-27 14:48:18 +00:00
android:layout_width="match_parent"
2025-01-30 10:29:45 +00:00
android:layout_height="match_parent"
android:orientation="vertical"
android:background="?attr/colorTintedBackground"
tools:context="com.habitrpg.android.habitica.ui.activities.FixCharacterValuesActivity">
2015-07-27 14:48:18 +00:00
2025-01-30 10:29:45 +00:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
2015-07-27 14:48:18 +00:00
android:layout_width="match_parent"
2025-01-30 10:29:45 +00:00
android:background="?attr/headerBackgroundColor"
android:layout_height="wrap_content">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:theme="@style/Toolbar"
style="@style/ToolbarTitleStyle"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark" />
2019-03-28 13:45:16 +00:00
</com.google.android.material.appbar.AppBarLayout>
2025-01-30 10:29:45 +00:00
2019-03-28 13:45:16 +00:00
<androidx.core.widget.NestedScrollView
2025-01-30 10:29:45 +00:00
android:id="@+id/nested_scroll_view"
2019-03-28 13:45:16 +00:00
android:orientation="vertical"
android:layout_width="match_parent"
2025-01-30 10:29:45 +00:00
android:layout_height="match_parent">
<LinearLayout
2019-03-28 13:45:16 +00:00
android:orientation="vertical"
2025-01-30 10:29:45 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-03-28 13:45:16 +00:00
android:paddingBottom="@dimen/spacing_large">
2025-01-30 10:29:45 +00:00
<LinearLayout
android:id="@+id/upper_text_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-01-30 10:29:45 +00:00
tools:background="@color/brand_300"
android:orientation="vertical"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="@dimen/spacing_large"
android:paddingBottom="@dimen/spacing_large">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/text_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-01-30 10:29:45 +00:00
style="@style/TaskFormTextInputLayoutAppearance"
app:boxStrokeWidth="2dp"
app:boxStrokeWidthFocused="2dp"
app:hintTextColor="?colorPrimaryText"
android:backgroundTint="?attr/colorPrimaryText"
android:hint="@string/task_title"
android:alpha="0.75">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/text_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?attr/colorPrimaryText"
android:inputType="textCapSentences|textAutoCorrect" />
2018-11-06 15:11:02 +00:00
</com.google.android.material.textfield.TextInputLayout>
2025-01-30 10:29:45 +00:00
2018-11-06 15:11:02 +00:00
<com.google.android.material.textfield.TextInputLayout
2025-01-30 10:29:45 +00:00
android:id="@+id/notes_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-01-30 10:29:45 +00:00
style="@style/TaskFormTextInputLayoutAppearance"
app:boxStrokeWidth="2dp"
app:boxStrokeWidthFocused="2dp"
android:backgroundTint="?attr/colorPrimaryText"
app:hintTextColor="?colorPrimaryText"
android:hint="@string/notes"
android:layout_marginTop="@dimen/spacing_large"
android:alpha="0.75">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/notes_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minLines="3"
android:gravity="top"
android:textColor="?attr/colorPrimaryText"
android:inputType="textCapSentences|textAutoCorrect|textMultiLine" />
2018-11-06 15:11:02 +00:00
</com.google.android.material.textfield.TextInputLayout>
2025-01-30 10:29:45 +00:00
<TextView
2025-01-30 10:29:45 +00:00
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"
android:textColor="@color/text_primary"
tools:visibility="visible"
tools:text="Challenge Name" />
2019-03-28 13:45:16 +00:00
</LinearLayout>
2025-01-30 10:29:45 +00:00
<LinearLayout
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"
2025-01-30 10:29:45 +00:00
android:orientation="vertical"
android:layout_marginStart="@dimen/spacing_large"
android:layout_marginEnd="@dimen/spacing_large">
<androidx.compose.ui.platform.ComposeView
android:id="@+id/habit_scoring_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp" />
2019-04-05 09:16:44 +00:00
<TextView
2025-01-30 10:29:45 +00:00
android:id="@+id/reward_value_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/cost"
style="@style/TaskFormSectionheader" />
2020-04-02 11:55:16 +00:00
<com.habitrpg.android.habitica.ui.views.tasks.form.StepperValueFormView
2025-01-30 10:29:45 +00:00
android:id="@+id/reward_value"
android:layout_width="match_parent"
android:layout_height="56dp" />
<TextView
2025-01-30 10:29:45 +00:00
android:id="@+id/checklist_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/checklist"
style="@style/TaskFormSectionheader" />
2019-04-04 10:31:27 +00:00
<com.habitrpg.android.habitica.ui.views.tasks.form.ChecklistContainer
2025-01-30 10:29:45 +00:00
android:id="@+id/checklist_container"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2019-04-04 10:31:27 +00:00
<TextView
2025-01-30 10:29:45 +00:00
android:id="@+id/task_difficulty_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/difficulty"
style="@style/TaskFormSectionheader" />
2022-11-22 14:48:15 +00:00
<androidx.compose.ui.platform.ComposeView
2025-01-30 10:29:45 +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
2025-01-30 10:29:45 +00:00
android:id="@+id/assign_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/assign"
style="@style/TaskFormSectionheader" />
2022-11-22 14:48:15 +00:00
<androidx.compose.ui.platform.ComposeView
2025-01-30 10:29:45 +00:00
android:id="@+id/assign_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
2025-01-30 10:29:45 +00:00
android:id="@+id/habit_reset_streak_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/reset_counter"
style="@style/TaskFormSectionheader" />
2022-11-28 12:26:18 +00:00
<androidx.compose.ui.platform.ComposeView
2025-01-30 10:29:45 +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
2025-01-30 10:29:45 +00:00
android:id="@+id/scheduling_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/scheduling"
style="@style/TaskFormSectionheader" />
2019-04-04 10:31:27 +00:00
<com.habitrpg.android.habitica.ui.views.tasks.form.TaskSchedulingControls
2025-01-30 10:29:45 +00:00
android:id="@+id/task_scheduling_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
2025-01-30 10:29:45 +00:00
android:id="@+id/adjust_streak_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/adjust_counter"
style="@style/TaskFormSectionheader" />
2019-03-28 13:45:16 +00:00
<LinearLayout
2025-01-30 10:29:45 +00:00
android:id="@+id/adjust_streak_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2019-03-28 13:45:16 +00:00
<com.google.android.material.textfield.TextInputLayout
2025-01-30 10:29:45 +00:00
style="@style/TextInputLayoutAppearance"
android:id="@+id/habit_adjust_positive_input_layout"
android:layout_width="0dp"
2019-03-28 13:45:16 +00:00
android:layout_height="wrap_content"
2025-01-30 10:29:45 +00:00
android:background="@drawable/task_form_control_bg"
android:hint="@string/positive_habit_form"
android:layout_weight="1">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/habit_adjust_positive_streak_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:inputType="number" />
2019-03-28 13:45:16 +00:00
</com.google.android.material.textfield.TextInputLayout>
2025-01-30 10:29:45 +00:00
2019-03-28 13:45:16 +00:00
<Space
2025-01-30 10:29:45 +00:00
android:layout_width="22dp"
android:layout_height="wrap_content" />
2019-03-28 13:45:16 +00:00
<com.google.android.material.textfield.TextInputLayout
2025-01-30 10:29:45 +00:00
style="@style/TextInputLayoutAppearance"
android:layout_width="0dp"
2019-03-28 13:45:16 +00:00
android:layout_height="wrap_content"
2025-01-30 10:29:45 +00:00
android:hint="@string/negative_habit_form"
android:background="@drawable/task_form_control_bg"
android:layout_weight="1">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/habit_adjust_negative_streak_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:inputType="number" />
2019-03-28 13:45:16 +00:00
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
2019-04-04 10:31:27 +00:00
<TextView
2025-01-30 10:29:45 +00:00
android:id="@+id/reminders_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/reminders"
style="@style/TaskFormSectionheader" />
<RelativeLayout
2025-01-30 10:29:45 +00:00
android:id="@+id/notifications_disabled_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-01-30 10:29:45 +00:00
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"
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
2025-01-30 10:29:45 +00:00
android:id="@+id/reminders_container"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2019-04-04 10:31:27 +00:00
2025-01-06 13:57:34 +00:00
<FrameLayout
2025-01-30 10:29:45 +00:00
android:id="@+id/exact_alarm_disabled_container"
2025-01-06 13:57:34 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-01-30 10:29:45 +00:00
android:layout_marginBottom="@dimen/spacing_medium"
android:background="@drawable/layout_rounded_bg_yellow_10">
<TextView
android:id="@+id/exact_alarm_disabled_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="12dp"
android:gravity="center"
android:fontFamily="@string/font_family_medium"
android:text="@string/exact_alarm_system_settings_reminders"
android:textSize="12sp" />
2025-01-06 13:57:34 +00:00
</FrameLayout>
2019-03-28 13:45:16 +00:00
<LinearLayout
2025-01-30 10:29:45 +00:00
android:id="@+id/stat_wrapper"
2019-03-28 13:45:16 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-01-30 10:29:45 +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
2025-01-30 10:29:45 +00:00
android:id="@+id/stats_selector"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2019-03-28 13:45:16 +00:00
</LinearLayout>
2025-01-30 10:29:45 +00:00
2019-03-28 13:45:16 +00:00
<TextView
2025-01-30 10:29:45 +00:00
android:id="@+id/tags_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/tags"
style="@style/TaskFormSectionheader" />
2019-03-28 13:45:16 +00:00
<LinearLayout
2025-01-30 10:29:45 +00:00
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>