Fragments as a RecyclerView's ViewHolder?
问题 How would one go about creating a RecyclerView who's ViewHolder children are actually Fragments? current example (does not work, views are stacked on top of eachother) Here is the onResume() for a Fragment which is the main content of an Activity // onResume() in FragmentA (main content of an Activity) recyclerView.addItemDecoration(new VerticalSpaceItemDecoration(5)); RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false); List