|
|
@@ -57,6 +57,8 @@ public class CustomListicleImageView extends ConstraintLayout {
|
|
|
textViewTitleNumber = findViewById(R.id.text_view_title_number);
|
|
|
textViewTitle = findViewById(R.id.text_view_title);
|
|
|
textViewSubTitle = findViewById(R.id.text_view_sub_title);
|
|
|
+ recyclerView = findViewById(R.id.recycler_view_listicle_view);
|
|
|
+
|
|
|
|
|
|
textViewTitleNumber.setText("05");
|
|
|
textViewTitle.setText("Title");
|
|
|
@@ -65,8 +67,7 @@ public class CustomListicleImageView extends ConstraintLayout {
|
|
|
textViewCurrentPage.setText("1");
|
|
|
textViewTotalPage.setText(String.valueOf(textImageBeanList.size()));
|
|
|
|
|
|
- recyclerView = findViewById(R.id.recycler_view_listicle_view);
|
|
|
- Snapper snapper = new Snapper(recyclerView, 400);
|
|
|
+ Snapper snapper = new Snapper(recyclerView, 800);
|
|
|
snapper.attachToRecyclerView(recyclerView);
|
|
|
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false);
|
|
|
recyclerView.setLayoutManager(linearLayoutManager);
|