|
|
@@ -12,7 +12,7 @@ import android.widget.TextView;
|
|
|
import java.util.List;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
-import kr.co.zumo.app.lifeplus.bean.TextImageBean;
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.ContentsDetailImageBean;
|
|
|
import kr.co.zumo.app.lifeplus.util.StringUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
import kr.co.zumo.app.lifeplus.view.custom.Snapper;
|
|
|
@@ -50,7 +50,7 @@ public class CustomListicleImageView extends ConstraintLayout {
|
|
|
super(context, attrs, defStyleAttr);
|
|
|
}
|
|
|
|
|
|
- public void init(Context context, List<TextImageBean> textImageBeanList, IEventListener listener) {
|
|
|
+ public void init(Context context, List<ContentsDetailImageBean> contentsDetailImageBeans, IEventListener listener) {
|
|
|
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
inflater.inflate(R.layout.custom_listicle_image_view, this);
|
|
|
|
|
|
@@ -67,7 +67,7 @@ public class CustomListicleImageView extends ConstraintLayout {
|
|
|
textViewSubTitle.setText("SubTitle");
|
|
|
|
|
|
textViewCurrentPage.setText("1");
|
|
|
- textViewTotalPage.setText(String.valueOf(textImageBeanList.size()));
|
|
|
+ textViewTotalPage.setText(String.valueOf(contentsDetailImageBeans.size()));
|
|
|
|
|
|
if (recyclerView.getOnFlingListener() == null) {
|
|
|
Snapper snapper = new Snapper(recyclerView, 800);
|
|
|
@@ -75,7 +75,7 @@ public class CustomListicleImageView extends ConstraintLayout {
|
|
|
}
|
|
|
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false);
|
|
|
recyclerView.setLayoutManager(linearLayoutManager);
|
|
|
- adapter = new CustomListicleImageViewAdapter(context, inflater, textImageBeanList, event -> {
|
|
|
+ adapter = new CustomListicleImageViewAdapter(context, inflater, contentsDetailImageBeans, event -> {
|
|
|
if (null != listener) {
|
|
|
|
|
|
listener.onEvent(event);
|