Сделай так чтобы при нажатии на icon1 появлялось модальное окно  , это модальное окно должноо плавно заполнять  весь элемент RecycleView , в котором находится .Важно чтобы модально окно плавно заполняло весь контейнем в котором находится начиная с самой иконки на которую кликнули<ScrollView 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="match_parent"
    tools:context=".main_Fragments.Home_Fragment.HomeFragment">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/sliderRecyclerView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:clipToPadding="false"
            android:paddingStart="8dp"
            android:paddingEnd="8dp"
            app:layout_constraintTop_toTopOf="parent"
            tools:ignore="MissingConstraints" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingStart="15dp"
            android:text="Hello"
            android:textColor="@color/silver"
            android:textStyle="bold"
            app:layout_constraintBottom_toTopOf="@+id/CustomRecycleView"
            app:layout_constraintTop_toBottomOf="@+id/sliderRecyclerView"
            app:layout_constraintVertical_bias="1.0"
            tools:ignore="MissingConstraints"
            tools:layout_editor_absoluteX="0dp" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/first_type_recycleView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="276dp"
            android:clipToPadding="false"
            android:paddingStart="8dp"
            android:paddingEnd="8dp"
            app:layout_constraintTop_toBottomOf="@+id/sliderRecyclerView"
            tools:layout_editor_absoluteX="0dp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingStart="15dp"
            android:text="Hello"
            android:textColor="@color/silver"
            android:textStyle="bold"
            app:layout_constraintBottom_toTopOf="@+id/first_type_recycleView"
            app:layout_constraintTop_toBottomOf="@+id/CustomRecycleView"
            tools:ignore="MissingConstraints" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/CustomRecycleView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="32dp"
            android:clipToPadding="true"
            android:paddingStart="8dp"
            android:paddingEnd="8dp"
            app:layout_constraintTop_toBottomOf="@+id/sliderRecyclerView"
            tools:layout_editor_absoluteX="0dp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingStart="15dp"
            android:text="Hello"
            android:textColor="@color/silver"
            android:textStyle="bold"
            app:layout_constraintBottom_toTopOf="@+id/first_type_recycleView_2"
            app:layout_constraintTop_toBottomOf="@+id/first_type_recycleView"
            tools:ignore="MissingConstraints" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/first_type_recycleView_2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="24dp"
            android:clipToPadding="false"
            android:paddingStart="8dp"
            android:paddingEnd="8dp"
            app:layout_constraintTop_toBottomOf="@+id/first_type_recycleView"
            tools:layout_editor_absoluteX="16dp" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>package com.example.cinema_provider_app.main_Fragments.Home_Fragment.Adapters

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import com.example.cinema_provider_app.R
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.Data_Classes.CustomDataClass
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.HomeFragment

class CustomRecycleAdapter(private val list: List<CustomDataClass>,private val homeFragment: HomeFragment) :
    RecyclerView.Adapter<CustomRecycleAdapter.ViewHolder>() {


    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        val createItem =
            LayoutInflater.from(parent.context).inflate(R.layout.item_custom_type, parent, false)
        return ViewHolder(createItem)
    }

    override fun getItemCount(): Int {
        return list.size
    }

    override fun onBindViewHolder(holder: ViewHolder, position: Int) {
        val currentItem = list[position]
        holder.bgImage.setImageResource(currentItem.bgImage)
        holder.icon1.setOnClickListener {
            homeFragment.placeHolder("icon1")
        }

        holder.icon2.setOnClickListener {
            homeFragment.placeHolder("icon2")
        }


    }

    class ViewHolder(item: View) : RecyclerView.ViewHolder(item) {
        val bgImage: ImageView = item.findViewById(R.id.cardBackgroundImage)
        val icon1: ImageView = item.findViewById(R.id.icon1)
        val icon2: ImageView = item.findViewById(R.id.icon2)
        init {
            icon1.setOnClickListener {}
            icon2.setOnClickListener {}
        }



    }



}
package com.example.cinema_provider_app.main_Fragments.Home_Fragment.Data_Classes

data class CustomDataClass(val bgImage: Int)
: package com.example.cinema_provider_app.main_Fragments.Home_Fragment

import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.LinearSnapHelper
import androidx.recyclerview.widget.PagerSnapHelper
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.SnapHelper
import com.example.cinema_provider_app.R
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.Adapters.CustomRecycleAdapter
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.Adapters.FirstTypeAdapter
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.Adapters.SliderAdapter
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.Data_Classes.CustomDataClass
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.Data_Classes.FirstDataType
import com.example.cinema_provider_app.main_Fragments.Home_Fragment.Data_Classes.SlideItem


class HomeFragment : Fragment() {


private val scrollHandler = Handler()
private lateinit var scrollRunnable: Runnable
private lateinit var sliderRecyclerView: RecyclerView

private lateinit var firstTypeRecyclerView: RecyclerView
private lateinit var secondTypeRecyclerView: RecyclerView
private lateinit var customRecyclerView: RecyclerView


override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val view = inflater.inflate(R.layout.fragment_home, container, false)


return view
}

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FIRST SLIDER ON THE TOP
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
sliderRecyclerView = view.findViewById(R.id.sliderRecyclerView)
sliderRecyclerView.layoutManager =
LinearLayoutManager(requireContext(), LinearLayoutManager.HORIZONTAL, false)

val snapHelper: SnapHelper = PagerSnapHelper()
snapHelper.attachToRecyclerView(sliderRecyclerView)

val slideItems = listOf(
SlideItem(" Slide 1", “Description 1”, R.drawable._54282_admin),
SlideItem(" Slide 2", “Description 2”, R.drawable._54282_admin),
SlideItem(" Slide 3", “Description 3”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 4", “Description 4”, R.drawable._54282_admin),
SlideItem(" Slide 5", “Description 5”, R.drawable._54282_admin)
)
val sliderAdapter = SliderAdapter(slideItems)
sliderRecyclerView.adapter = sliderAdapter
scrollRunnable = Runnable {
val layoutManager = sliderRecyclerView.layoutManager as LinearLayoutManager
val currentPosition = layoutManager.findFirstVisibleItemPosition()
val nextPosition =
if (currentPosition < sliderAdapter.itemCount - 1) currentPosition + 1 else 0
sliderRecyclerView.smoothScrollToPosition(nextPosition)
scrollHandler.postDelayed(scrollRunnable, AUTO_SCROLL_DELAY)
}

scrollHandler.postDelayed(scrollRunnable, AUTO_SCROLL_DELAY)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//SECOND TYPE SLIDER’s
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
firstTypeRecyclerView = view.findViewById(R.id.first_type_recycleView)
val secondSlideItem = listOf<FirstDataType>(
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin)
)
firstTypeRecyclerView.layoutManager =
LinearLayoutManager(requireContext(), LinearLayoutManager.HORIZONTAL, false)
val firstTypeAdapter = FirstTypeAdapter(secondSlideItem)
firstTypeRecyclerView.adapter = firstTypeAdapter
val snappHelper: SnapHelper = LinearSnapHelper()
snappHelper.attachToRecyclerView(firstTypeRecyclerView)




secondTypeRecyclerView = view.findViewById(R.id.first_type_recycleView_2)
val secondTypeSlideItem = listOf<FirstDataType>(
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin),
FirstDataType(R.drawable._54282_admin)
)
secondTypeRecyclerView.layoutManager =
LinearLayoutManager(requireContext(), LinearLayoutManager.HORIZONTAL, false)
val secondTypeAdapter = FirstTypeAdapter(secondTypeSlideItem)
secondTypeRecyclerView.adapter = secondTypeAdapter
val snappHelperr: SnapHelper = LinearSnapHelper()
snappHelperr.attachToRecyclerView(secondTypeRecyclerView)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CUSTOM TYPE SLIDER’s
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
customRecyclerView = view.findViewById(R.id.CustomRecycleView)
customRecyclerView.layoutManager =
LinearLayoutManager(requireContext(), LinearLayoutManager.HORIZONTAL, false)
val customList = listOf(
CustomDataClass(R.drawable.bg_game),
CustomDataClass(R.drawable.bg_game),
CustomDataClass(R.drawable.bg_game),
CustomDataClass(R.drawable.bg_game),
CustomDataClass(R.drawable.bg_game)


)
val customAdapter = CustomRecycleAdapter(customList,this)
customRecyclerView.adapter = customAdapter
val customSnapHelper: SnapHelper = PagerSnapHelper()
customSnapHelper.attachToRecyclerView(customRecyclerView)






}

override fun onDestroy() {
scrollHandler.removeCallbacks(scrollRunnable)
super.onDestroy()
}

fun placeHolder(key : String) {
if (key == “icon1”){
Toast.makeText(activity, key, Toast.LENGTH_SHORT).show();
}
if (key == “icon2”){
Toast.makeText(activity, key, Toast.LENGTH_SHORT).show();
}

}

companion object {
private const val AUTO_SCROLL_DELAY = 10000L // Задержка в миллисекундах (4 секунды)

@JvmStatic
fun newInstance() = HomeFragment()
}
}