|
|
@@ -4,6 +4,9 @@ import android.view.View;
|
|
|
import android.widget.ImageView;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
@@ -28,6 +31,7 @@ public class EventDetailCoverHolder extends EventDetailView {
|
|
|
private TextView tag1;
|
|
|
private TextView tag2;
|
|
|
private TextView tag3;
|
|
|
+ private List<TextView> tagList;
|
|
|
private ImageView imageViewArrow;
|
|
|
|
|
|
public EventDetailCoverHolder(View itemView) {
|
|
|
@@ -50,9 +54,20 @@ public class EventDetailCoverHolder extends EventDetailView {
|
|
|
textViewEventDate.setText("2018.09.17~2018.09.20");
|
|
|
textViewEventPresent.setText("라플 불꽃좌석권 (1인 2매)");
|
|
|
textViewEventTitle.setText("서울세계불꽃축제 \n 티켓을 잡아라");
|
|
|
- tag1.setText("#인생샷");
|
|
|
- tag2.setText("#힐링");
|
|
|
- tag3.setText("");
|
|
|
+
|
|
|
+ tagList = new ArrayList<>();
|
|
|
+ tagList.add(tag1);
|
|
|
+ tagList.add(tag2);
|
|
|
+ tagList.add(tag3);
|
|
|
+
|
|
|
+ for (int i = 0; i < tagList.size(); ++i) {
|
|
|
+ tagList.get(i).setText("tag" + i);
|
|
|
+ tagList.get(i).setOnClickListener(view -> {
|
|
|
+ listener.onEvent(new Event.Builder(Event.TAG).index(getAdapterPosition()).build());
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
imageViewArrow.setOnClickListener(view -> {
|
|
|
listener.onEvent(new Event.Builder(Event.NEXT).index(getAdapterPosition()).build());
|
|
|
});
|