I am trying to reference an element inside a fragment that is also inside a tab layout.
categoryList = tabLayout.findViewById(R.id.admin_category_list);
categoryList.setLayoutManager(new LinearLayoutManager(this));
CategoriesViewAdapter categoriesViewAdapter = new CategoriesViewAdapter(this, categoryManager.getCategories());
categoryList.setAdapter(categoriesViewAdapter);
However this results into a null object reference...
Can someone please help me?
To reference an element of a fragment that is inside a tab layout.