I'm trying to check if some specific items are visible in the RecyclerView
; But I couldn't implement that. Please help me to determine if my items are completely visible in the RecyclerView
.
mrecylerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
super.onScrolled(recyclerView, dx, dy);
LinearLayout ll = (LinearLayout) recyclerView.findChildViewUnder(dx, dy);
if (ll != null) {
TextureVideoView tvv = (TextureVideoView) ll.findViewById(R.id.cropTextureView);
}
}
});
I want to check if tvv
view is completely visible within the mrecyclerView
view.