I have a Tablayout and a view pager with 2 tabs. In the second tab, i need to show a fragment with some static view and a recyclerciew.I am able to see the static views but there is no view of recyclerview is visible. I have tried to debug, everything seems to be fine and the same fragment on attached to a drawer is also working fine but it's not working with view pager.
change this line mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
to mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false));