mirror of
https://github.com/a-mayb3/KanbanCloneAndroid.git
synced 2026-03-21 18:15:38 +01:00
133 lines
No EOL
5.6 KiB
XML
133 lines
No EOL
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ui.ProjectDetailActivity">
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="true"
|
|
app:srcCompat="@android:drawable/ic_menu_revert"
|
|
android:id="@+id/returnActionButton"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:layout_marginBottom="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
<TextView
|
|
android:text="Project Name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/projectTitleText"
|
|
android:padding="12dp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:layout_marginTop="4dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:textSize="24sp" />
|
|
|
|
<TextView
|
|
android:text="Completed: 100%"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/completedPercentageText"
|
|
app:layout_constraintTop_toBottomOf="@+id/projectTitleText"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:paddingRight="12dp"
|
|
android:paddingLeft="12dp"
|
|
android:layout_marginTop="16dp"
|
|
android:textSize="18dp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/projectDescriptionText"
|
|
app:layout_constraintTop_toBottomOf="@+id/projectDescriptionLabel"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:text="Project description"
|
|
android:padding="12dp"
|
|
android:gravity="start|top" />
|
|
|
|
<TextView
|
|
android:text="Project description:"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/projectDescriptionLabel"
|
|
tools:layout_editor_absoluteX="0dp"
|
|
app:layout_constraintTop_toBottomOf="@+id/completedPercentageText"
|
|
android:layout_marginTop="16dp"
|
|
android:paddingLeft="12dp"
|
|
android:paddingRight="12dp"
|
|
android:labelFor="@id/projectDescriptionText"
|
|
android:textSize="18dp" />
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toBottomOf="@+id/projectDescriptionText"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:layout_marginTop="24dp"
|
|
android:id="@+id/taskLinearLayout">
|
|
|
|
<TextView
|
|
android:text="Tasks:"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/taskListTitle"
|
|
android:paddingLeft="12dp"
|
|
android:textSize="18dp" />
|
|
|
|
<Button
|
|
android:text="Add a task..."
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/addTaskButton"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:layout_editor_absoluteX="0dp"
|
|
android:id="@+id/collaboratorsLinearLayout"
|
|
android:gravity="top|center_vertical"
|
|
app:layout_constraintTop_toBottomOf="@+id/taskLinearLayout"
|
|
android:layout_marginTop="24dp">
|
|
|
|
<TextView
|
|
android:text="Collaborators:"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/collaboratorListTitle"
|
|
android:paddingLeft="12dp"
|
|
android:textSize="18dp" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/collaboratorListRecycler" />
|
|
|
|
<Button
|
|
android:text="Add a new collaborator..."
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/addCollaboratorButton"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp" />
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |