How to make TabLayout in fragments, what would be such submenus
1 answer
Because the question is actually about what a fragment is and how to use it, I’ll just give the fragment code with the markup loaded into it
public class MyFragment extends Fragment{ @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_layout, container, false); } } |

onCreateViewmethod in the fragment and load the markup there. Further, if you want nested fragments, you need togetChildFragmentManager(). In the first part you can use any introductory lesson on the fragments. You still have not explained what you have a specific problem. Did you try to place the markup yourself? - Yuriy SPb ♦