|
|
@@ -1,5 +1,4 @@
|
|
|
-package kr.co.zumo.app.lifeplus.view.fragment.alarm;
|
|
|
-
|
|
|
+package kr.co.zumo.app.lifeplus.view.fragment.notification;
|
|
|
import android.content.Context;
|
|
|
import android.support.annotation.NonNull;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
@@ -9,6 +8,8 @@ import android.view.ViewGroup;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* AlarmListAdapter
|
|
|
* <pre>
|
|
|
@@ -19,7 +20,7 @@ import kr.co.zumo.app.R;
|
|
|
* @history 하세미 [2018-10-25] [최초 작성]
|
|
|
* @since 2018-10-25
|
|
|
*/
|
|
|
-public class AlarmListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
|
|
+public class NotiListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
|
|
|
|
|
private Context context;
|
|
|
private LayoutInflater inflater;
|
|
|
@@ -29,7 +30,7 @@ public class AlarmListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
|
|
|
private static final int TEXT_LINK_TYPE = 3;
|
|
|
|
|
|
|
|
|
- public AlarmListAdapter(Context context) {
|
|
|
+ public NotiListAdapter(Context context) {
|
|
|
this.context = context;
|
|
|
this.inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
}
|
|
|
@@ -40,15 +41,15 @@ public class AlarmListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
|
|
|
View view;
|
|
|
switch (viewType) {
|
|
|
case TEXT_EXPANDABLE_TYPE:
|
|
|
- view = inflater.inflate(R.layout.alarm_expandable_contents, parent, false);
|
|
|
- return new AlarmExpandableViewHolder(view);
|
|
|
+ view = inflater.inflate(R.layout.noti_expandable_contents, parent, false);
|
|
|
+ return new NotiExpandableViewHolder(view);
|
|
|
case IMAGE_TEXT_TYPE:
|
|
|
- view = inflater.inflate(R.layout.alarm_image_text_contents, parent, false);
|
|
|
- return new AlarmImageTextViewHolder(view);
|
|
|
+ view = inflater.inflate(R.layout.noti_image_text_contents, parent, false);
|
|
|
+ return new NotiImageTextViewHolder(view);
|
|
|
case TEXT_TYPE:
|
|
|
case TEXT_LINK_TYPE:
|
|
|
- view = inflater.inflate(R.layout.alarm_text_contents, parent, false);
|
|
|
- return new AlarmTextViewHolder(view);
|
|
|
+ view = inflater.inflate(R.layout.noti_text_contents, parent, false);
|
|
|
+ return new NotiTextViewHolder(view);
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
@@ -59,14 +60,14 @@ public class AlarmListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
|
|
|
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
|
|
|
switch (getItemViewType(position)) {
|
|
|
case TEXT_EXPANDABLE_TYPE:
|
|
|
- ((AlarmExpandableViewHolder) holder).doDataSetting();
|
|
|
+ ((NotiExpandableViewHolder) holder).doDataSetting();
|
|
|
break;
|
|
|
case IMAGE_TEXT_TYPE:
|
|
|
- ((AlarmImageTextViewHolder) holder).doDataSetting();
|
|
|
+ ((NotiImageTextViewHolder) holder).doDataSetting();
|
|
|
break;
|
|
|
case TEXT_TYPE:
|
|
|
case TEXT_LINK_TYPE:
|
|
|
- ((AlarmTextViewHolder) holder).doDataSetting();
|
|
|
+ ((NotiTextViewHolder) holder).doDataSetting();
|
|
|
break;
|
|
|
default:
|
|
|
break;
|