code: public static View getCenterXChild(RecyclerView recyclerView) {
          int childCount = recyclerView.getChildCount();
          for (int i = 0; i < childCount; i++) {
              View child = recyclerView.getChildAt(i);
              if (isChildInCenterX(recyclerView, child)) {
                  return child;
              }
          }
          return null;
      }
docs: Get center child in X Axes