Adapted project creation form

This commit is contained in:
Marta Borgia Leiva 2026-02-12 11:44:29 +01:00
parent d7eb6ab646
commit 528e749d79
2 changed files with 114 additions and 96 deletions

View file

@ -16,80 +16,83 @@
app:srcCompat="@android:drawable/ic_menu_revert"
android:id="@+id/returnActionButton"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="@dimen/fab_margin_bottom"
android:layout_marginEnd="@dimen/fab_margin_end"
app:layout_constraintEnd_toEndOf="parent" />
<TextView
android:text="Create a new project..."
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/activityTitle"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintEnd_toEndOf="parent"
android:padding="12dp"
android:textSize="24dp"
android:layout_marginTop="4dp" />
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/bottom_padding_for_fab">
<MultiAutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="500dp"
android:id="@+id/newProjectDescription"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/newProjectDescriptionLabel"
android:hint="This is my new super-special project that will change the world!!!"
android:textAlignment="textStart"
android:gravity="start|top"
android:padding="12dp" />
<TextView
android:text="Create a new project..."
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/activityTitle"
android:padding="@dimen/padding_standard"
android:textSize="@dimen/text_size_title"
android:textStyle="bold"
android:layout_marginTop="@dimen/margin_tiny" />
<AutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectName"
app:layout_constraintTop_toBottomOf="@+id/newProjectNameLabel"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintEnd_toEndOf="parent"
android:hint="My new project!"
android:padding="12dp" />
<TextView
android:text="Project name:"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectNameLabel"
android:textSize="@dimen/text_size_subtitle"
android:textStyle="bold"
android:layout_marginTop="@dimen/margin_medium"
android:paddingLeft="@dimen/padding_standard"
android:paddingRight="@dimen/padding_standard" />
<TextView
android:text="Project name:"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectNameLabel"
tools:layout_editor_absoluteX="0dp"
android:labelFor="@id/activityTitle"
app:layout_constraintTop_toBottomOf="@+id/activityTitle"
android:layout_marginTop="16dp" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectName"
android:hint="My new project!"
android:inputType="text"
android:padding="@dimen/padding_standard"
android:layout_marginLeft="@dimen/margin_standard"
android:layout_marginRight="@dimen/margin_standard"
android:layout_marginTop="@dimen/margin_small" />
<TextView
android:text="Project description:"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectDescriptionLabel"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/newProjectName"
android:layout_marginTop="20dp" />
<TextView
android:text="Project description:"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectDescriptionLabel"
android:textSize="@dimen/text_size_subtitle"
android:textStyle="bold"
android:layout_marginTop="@dimen/margin_medium"
android:paddingLeft="@dimen/padding_standard"
android:paddingRight="@dimen/padding_standard" />
<Button
android:text="Create new project"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectCreateButton"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="15dp"
app:layout_constraintTop_toBottomOf="@+id/newProjectDescription"
android:padding="20dp"
android:layout_margin="12dp" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectDescription"
android:hint="This is my new super-special project that will change the world!!!"
android:inputType="textMultiLine"
android:minLines="3"
android:maxLines="5"
android:gravity="start|top"
android:padding="@dimen/padding_standard"
android:layout_marginLeft="@dimen/margin_standard"
android:layout_marginRight="@dimen/margin_standard"
android:layout_marginTop="@dimen/margin_small" />
<Button
android:text="Create new project"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/newProjectCreateButton"
android:backgroundTint="@color/primary_green"
android:layout_marginTop="@dimen/margin_large"
android:layout_marginLeft="@dimen/margin_standard"
android:layout_marginRight="@dimen/margin_standard" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>