0

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.

pmatatias
  • 3,491
  • 3
  • 10
  • 30
CptZ
  • 1

0 Answers0