I am using a horizontal RecyclerView inside a vertical ScrollView. The horizontal RecyclerView scrolls horizontally perfectly and so does the Vertical ScrollView until i try to scroll up and down on the recyclerView nothing happens.. the vertical scrolling seems to work only outside of the RecyclerView. How do i solve this? Here is my code of RecyclerView
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.addOnScrollListener(new EndlessRecyclerOnScrollListener(linearLayoutManager) {
@Override
public void onLoadMore(int current_page) {
Log.d("SCROLL PAST UPDATE", "You hit me");
//maintain scroll position
int lastFirstVisiblePosition = ((LinearLayoutManager) mRecyclerView.getLayoutManager()).findFirstCompletelyVisibleItemPosition();
((LinearLayoutManager) mRecyclerView.getLayoutManager()).scrollToPosition(lastFirstVisiblePosition);
loadMore(jsonSubreddit);
}
});
In the image above the burger and chicken biryani are in the recyclerview which only scrolls horizontally if i do an up or down action on it it doesnt scroll vertical but it scrolls vertically only if vertically scrolling action is done outside of it