<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:paddingTop="@dimen/dimen8dp"
    android:paddingBottom="@dimen/dimen8dp"
    android:paddingStart="@dimen/dimen20dp"
    android:paddingEnd="@dimen/dimen20dp"
    android:background="?attr/primaryBackgroundColor">

    <com.google.android.material.card.MaterialCardView
        android:id="@+id/avatarFrame"
        android:layout_width="@dimen/dimen24dp"
        android:layout_height="@dimen/dimen24dp"
        style="?attr/materialCardViewFilledStyle"
        app:cardElevation="@dimen/dimen0dp"
        android:layout_marginEnd="@dimen/dimen12dp"
        app:cardCornerRadius="@dimen/dimen12dp">

        <ImageView
            android:id="@+id/userAvatar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:contentDescription="@string/generalImgContentText"
            android:src="@drawable/ic_android" />

    </com.google.android.material.card.MaterialCardView>

    <LinearLayout
        android:id="@+id/userInfoSection"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toEndOf="@+id/avatarFrame"
        android:orientation="vertical">

            <TextView
                android:id="@+id/userFullName"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/dimen4dp"
                android:text="@string/userName"
                android:textColor="?attr/primaryTextColor"
                android:textSize="@dimen/dimen14sp"
                android:textStyle="bold" />

            <TextView
                android:id="@+id/userName"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/dimen4dp"
                android:text="@string/addCollaboratorViewUserDesc"
                android:textColor="?attr/primaryTextColor"
                android:textSize="@dimen/dimen12sp" />

    </LinearLayout>

    <LinearLayout
        android:id="@+id/frameAddCollaborator"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_toEndOf="@+id/userInfoSection"
        android:gravity="end"
        android:layout_marginStart="@dimen/dimen16dp"
        android:layout_marginEnd="0dp"
        android:paddingTop="@dimen/dimen4dp"
        android:paddingBottom="@dimen/dimen4dp"
        android:orientation="vertical">

        <ImageView
            android:id="@+id/addCollaboratorButtonAdd"
            android:layout_width="@dimen/dimen28dp"
            android:layout_height="@dimen/dimen28dp"
            android:layout_gravity="end"
            android:contentDescription="@string/addNewContent"
            android:background="@drawable/shape_circle"
            android:src="@drawable/ic_add"
            android:padding="@dimen/dimen8dp"
            android:visibility="gone"/>

        <ImageView
            android:id="@+id/addCollaboratorButtonRemove"
            android:layout_width="@dimen/dimen28dp"
            android:layout_height="@dimen/dimen28dp"
            android:layout_gravity="end"
            android:contentDescription="@string/removeContent"
            android:background="@drawable/shape_circle_red"
            android:src="@drawable/ic_remove"
            android:padding="@dimen/dimen8dp"
            android:visibility="gone"/>

    </LinearLayout>

</RelativeLayout>
