-
Notifications
You must be signed in to change notification settings - Fork 10
SnapAdapter Usage
Prashant Solanki edited this page Dec 14, 2015
·
4 revisions
-
Thats All. Now just initiate the
SnapAdapter
and set it toRecyclerView
.
adapter = new SnapAdapter<>(this, //Content
SimpleProduct.class, //Model Class
R.layout.item_social_button, // Item Layout Id
ViewHolderProduct.class); // ViewHolder Class
recyclerView.setAdapter(adapter);
adapter.add(data); // Add recyclerView Items.