<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/orgTeamsFrame"
    android:orientation="vertical"
    android:paddingTop="@dimen/dimen4dp"
    android:paddingBottom="@dimen/dimen4dp"
    xmlns:android="http://schemas.android.com/apk/res/android">

    <com.google.android.material.card.MaterialCardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="?attr/materialCardViewElevatedStyle"
        app:cardElevation="@dimen/dimen0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:foreground="?android:attr/selectableItemBackground"
            android:background="?attr/materialCardBackgroundColor"
            android:padding="@dimen/dimen12dp"
            android:orientation="vertical">

            <TextView
                android:id="@+id/teamTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/teamTitle"
                android:textColor="?attr/primaryTextColor"
                android:textSize="@dimen/dimen18sp"
                android:textStyle="bold"
                tools:text="PR-Managers"/>

            <TextView
                android:id="@+id/teamDescription"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/teamDescription"
                android:textColor="?attr/primaryTextColor"
                android:textSize="@dimen/dimen16sp"
                android:layout_marginTop="@dimen/dimen4dp"
                android:layout_marginBottom="@dimen/dimen4dp"
                tools:text="Managing pull requests and related issues"/>

            <LinearLayout
                android:id="@+id/membersPreviewFrame"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="@dimen/dimen10dp"
                android:gravity="bottom"
                android:orientation="horizontal"
                android:visibility="gone"
                tools:visibility="visible">

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/membersPreview"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"/>

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center_vertical"
                    android:text="@string/teamShowAll"
                    android:textColor="?attr/primaryTextColor"
                    android:textSize="@dimen/dimen16sp"
                    app:drawableEndCompat="@drawable/ic_chevron_right"
                    app:drawableTint="?attr/primaryTextColor"/>

            </LinearLayout>

        </LinearLayout>

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

</LinearLayout>
