Open acutetech opened 5 years ago
On the web page, the sample code in ProductGridFragment.java onCreateView() includes this:
recyclerView.setLayoutManager(new GridLayoutManager(getContext(), 2, GridLayoutManager.VERTICAL, false));
But GridLayoutManager.VERTICAL should be RecyclerView.VERTICAL
The finished-codelab code is correct.
On the web page, the sample code in ProductGridFragment.java onCreateView() includes this:
recyclerView.setLayoutManager(new GridLayoutManager(getContext(), 2, GridLayoutManager.VERTICAL, false));
But GridLayoutManager.VERTICAL should be RecyclerView.VERTICAL
The finished-codelab code is correct.