Advertisement
iNoobAvicena

gridlayout

Oct 8th, 2021
601
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void initRecyclerView() {
  2.         GridLayoutManager grid = new GridLayoutManager(this, 3, GridLayoutManager.VERTICAL, false);
  3.         RecyclerView recyclerView = findViewById(R.id.recyclerView);
  4.         dataRecycler = new DataAdapter(_dataList);
  5.         recyclerView.setAdapter(dataRecycler);
  6.         recyclerView.setLayoutManager(new GridLayoutManager(this,3));
  7. }
Advertisement
RAW Paste Data Copied
Advertisement