Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sortRecyclerView.setHasFixedSize(true);
- RecyclerView.LayoutManager rvLayoutManager = new GridLayoutManager(getActivity(), 2);
- sortRecyclerView.setLayoutManager(rvLayoutManager);
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/sortRecyclerView"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:scrollbars="vertical"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </android.support.constraint.ConstraintLayout>
Add Comment
Please, Sign In to add comment