Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. rvCategories = (RecyclerView) view.findViewById(R.id.rv);
  2.  
  3. adapter = new CategoryAdapter(getContext(), addCategories(TYPE), TYPE, null);
  4. GridLayoutManager glm = new GridLayoutManager(getActivity(), 2, GridLayoutManager.HORIZONTAL, false);
  5. rvCategories.setAdapter(adapter);
  6. rvCategories.setLayoutManager(glm);
  7. rvCategories.setLayoutManager(glm);
  8. rvCategories.setHasFixedSize(true);
  9. rvCategories.addItemDecoration(**вот тут что?**);
  10.  
  11. <application
  12. android:icon="@drawable/ic_launcher"
  13. android:label="@string/app_name"
  14. android:name=".MyApp">
  15.  
  16. ...
  17. </application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement