|
|
@@ -11,7 +11,6 @@ import kr.co.zumo.app.lifeplus.bean.api.ContentsDescriptionBean;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.ContentsDetailBean;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.ContentsDetailImageBean;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
-import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
import kr.co.zumo.app.lifeplus.view.custom.contents.CustomListicleImageView;
|
|
|
import kr.co.zumo.app.lifeplus.view.custom.contents.CustomListicleInformationView;
|
|
|
|
|
|
@@ -43,20 +42,12 @@ public class ContentsListicleHolder extends ContentsHolder<ContentsDetailBean> {
|
|
|
@Override
|
|
|
protected void bindInternal() {
|
|
|
List<ContentsDetailImageBean> contentsDetailImageBeans = bean.getItemImageList();
|
|
|
- customListicleImageView.init(itemView.getContext(), index, bean.getTitle(), bean.getSubTitle(), contentsDetailImageBeans, new IEventListener() {
|
|
|
- @Override
|
|
|
- public void onEvent(Event event) {
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- layoutMoreInfoPopup.setOnClickListener(view -> {
|
|
|
- listener.onEvent(new Event.Builder(Event.MORE).index(getAdapterPosition()).build());
|
|
|
- });
|
|
|
- }
|
|
|
|
|
|
- @Override
|
|
|
- public void attach() {
|
|
|
+ customListicleImageView.init(itemView.getContext(), index, bean.getTitle(), bean.getSubTitle(), contentsDetailImageBeans, event -> {});
|
|
|
|
|
|
+ if (null != layoutContainer) {
|
|
|
+ layoutContainer.removeAllViews();
|
|
|
+ }
|
|
|
|
|
|
for (int i = 0; i < bean.getDescriptionList().size(); i++) {
|
|
|
ContentsDescriptionBean contentsDescriptionBean = bean.getDescriptionList().get(i);
|
|
|
@@ -69,22 +60,20 @@ public class ContentsListicleHolder extends ContentsHolder<ContentsDetailBean> {
|
|
|
layoutMoreInfoPopup.setOnClickListener(view -> {
|
|
|
listener.onEvent(new Event.Builder(Event.MORE).index(getAdapterPosition()).build());
|
|
|
});
|
|
|
+
|
|
|
for (int i = 0; i < bean.getMoreInfoList().size(); i++) {
|
|
|
- // Log.e("APP# ContentsListicleHolder | attach", "|" + bean.getMoreInfoList().get(i).getDetailType() + "," + bean.getMoreInfoList().get(i).getMoreInfo());
|
|
|
+ // Log.e("APP# ContentsListicleHolder | attach", "|" + bean.getMoreInfoList().get(i).getDetailType() + "," + bean.getMoreInfoList().get(i).getMoreInfo());
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void attach() {
|
|
|
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void detach() {
|
|
|
-// if (null != customListicleImageView) {
|
|
|
-// customListicleImageView.dispose();
|
|
|
-// customListicleImageView = null;
|
|
|
-// }
|
|
|
|
|
|
- if (null != layoutContainer) {
|
|
|
- layoutContainer.removeAllViews();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
}
|