'recyclerview problem when scrooling right half screen

When scrolling from left half screen of the mobile scrolling is happening but when i scroll from right half screen scroling is not happening.

This is my xml clode.

<androidx.recyclerview.widget.RecyclerView
                android:id="@+id/postRecyclerView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                android:layout_margin="2dp"
                android:nestedScrollingEnabled="false">

            </androidx.recyclerview.widget.RecyclerView>

My Java code is

val layoutManager = LinearLayoutManager(this)
        layoutManager.orientation = LinearLayoutManager.VERTICAL
        binding.postRecyclerView.layoutManager = layoutManager
        binding.postRecyclerView.setHasFixedSize(false)
enter code here


Solution 1:[1]

Finally after so much search i found the solution. Actually i have used Floating button in that page due to that hieght from right side scrolling was not happend in Recyclerview.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sabir Syed