Kopaj-Menedzser / app / src / main / res / layout / item_user_expandable.xml
item_user_expandable.xml
Raw
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <!-- Fejléc -->
    <LinearLayout
        android:id="@+id/containerfejlec"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        tools:ignore="Suspicious0dp">

        <!-- Fejléc -->
        <include
            layout="@layout/item_user_basic"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1" />

        <ImageButton
            android:id="@+id/arrowButton"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="@color/gray_light"
            android:rotation="0"
            android:scaleType="fitCenter"
            android:src="@drawable/ic_arrow_down" />

    </LinearLayout>


    <!-- Lenyíló rész -->
    <LinearLayout
        android:id="@+id/expandableLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingStart="48dp"
        android:paddingTop="8dp"
        android:visibility="gone">

        <!-- ide jön a kitűző rész -->
        <androidx.fragment.app.FragmentContainerView
            android:id="@+id/childFragmentContainer_kituzok"
            android:name="androidx.fragment.app.Fragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="32dp"
            android:layout_marginBottom="16dp"
            android:layout_weight="1"
            tools:ignore="MissingConstraints" />
    </LinearLayout>


</LinearLayout>