|
|
@@ -1,50 +0,0 @@
|
|
|
-package kr.co.zumo.app.lifeplus.view.screen.contents;
|
|
|
-
|
|
|
-import android.content.Context;
|
|
|
-import android.support.annotation.NonNull;
|
|
|
-import android.support.v7.widget.RecyclerView;
|
|
|
-import android.view.LayoutInflater;
|
|
|
-import android.view.ViewGroup;
|
|
|
-
|
|
|
-import kr.co.zumo.app.R;
|
|
|
-import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
-
|
|
|
-/**
|
|
|
- * ShownWithContentsAdapter
|
|
|
- * <pre>
|
|
|
- * </pre>
|
|
|
- *
|
|
|
- * @author 하세미
|
|
|
- * @version 1.0
|
|
|
- * @history 하세미 [2018-11-28] [최초 작성]
|
|
|
- * @since 2018-11-28
|
|
|
- */
|
|
|
-public class ShownWithContentsAdapter extends RecyclerView.Adapter<ShownWithContentsViewHolder> {
|
|
|
-
|
|
|
- private Context context;
|
|
|
- private LayoutInflater inflater;
|
|
|
- private IEventListener listener;
|
|
|
-
|
|
|
-
|
|
|
- public ShownWithContentsAdapter(Context context, IEventListener listener) {
|
|
|
- this.context = context;
|
|
|
- this.listener = listener;
|
|
|
- this.inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
- }
|
|
|
-
|
|
|
- @NonNull
|
|
|
- @Override
|
|
|
- public ShownWithContentsViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
|
|
- return new ShownWithContentsViewHolder(inflater.inflate(R.layout.recomment_contents_view_item, parent, false));
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onBindViewHolder(@NonNull ShownWithContentsViewHolder holder, int position) {
|
|
|
- holder.bind(listener);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public int getItemCount() {
|
|
|
- return 4;
|
|
|
- }
|
|
|
-}
|