mirror of
https://github.com/a-mayb3/KanbanCloneAndroid.git
synced 2026-03-21 18:15:38 +01:00
Moved adapters to their own package and create collaborator item
This commit is contained in:
parent
421ffd5dc9
commit
e9e2ac3d2a
6 changed files with 159 additions and 46 deletions
|
|
@ -55,4 +55,4 @@
|
|||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
style="@style/Widget.Material3.Button.TextButton" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout_editor_absoluteX="1dp"
|
||||
tools:layout_editor_absoluteX="0dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/logoutButton"
|
||||
android:layout_marginTop="8dp"
|
||||
android:id="@+id/projectsRecyclerView" />
|
||||
|
|
@ -51,4 +51,4 @@
|
|||
android:layout_marginEnd="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
|||
53
app/src/main/res/layout/item_collaborator.xml
Normal file
53
app/src/main/res/layout/item_collaborator.xml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_horizontal|end"
|
||||
android:layout_margin="8dp"
|
||||
android:id="@+id/linearLayout">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="1.0"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:layout_marginStart="4dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/collaboratorNameText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Collaborator Name"
|
||||
android:textSize="18dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:text="example@email.com"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/collaboratorEmailText"
|
||||
android:textStyle="italic" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/removeCollaboratorButton"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Widget.Material3.Button.Icon"
|
||||
app:icon="@android:drawable/ic_delete"
|
||||
android:backgroundTint="@color/transparent_red"
|
||||
app:iconTint="@color/danger_red"
|
||||
android:layout_marginEnd="4dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintVertical_bias="0.333" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue