isViewPartiallyVisible

open fun isViewPartiallyVisible(@NonNull child: View, completelyVisible: Boolean, acceptEndPointInclusion: Boolean): Boolean(source)

Returns whether the given child view is partially or fully visible within the padded bounded area of RecyclerView, depending on the input parameters. A view is partially visible if it has non-zero overlap with RV's padded bounded area. If acceptEndPointInclusion flag is set to true, it's also considered partially visible if it's located outside RV's bounds and it's hitting either RV's start or end bounds.

Return

True if the given child is partially or fully visible, false otherwise.

Parameters

child

The child view to be examined.

completelyVisible

If true, the method returns true if and only if the child is completely visible. If false, the method returns true if and only if the child is only partially visible (that is it will return false if the child is either completely visible or out of RV's bounds).

acceptEndPointInclusion

If the view's endpoint intersection with RV's start of end bounds is enough to consider it partially visible, false otherwise.