package moe.akagi.chibaproject.card;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import it.gmariotti.cardslib.library.internal.Card;
import moe.akagi.chibaproject.R;
import moe.akagi.chibaproject.activity.PlaceDisplay;
import moe.akagi.chibaproject.datatype.Event;

/**
 * Created by a15 on 12/11/15.
 */
public class EventDetailInfo extends EventInfo {

    public EventDetailInfo(Context context, Event event) {
        super(context, R.layout.event_detail_info_content, event);
        this.addCardHeader(null);
        this.imageViewId = R.id.event_detail_info_image;
        this.timeViewId = R.id.event_detail_info_time;
        this.placeViewId = R.id.event_detail_info_place;
    }


    @Override
    public void setupInnerViewElements(ViewGroup parent, View view) {
        super.setupInnerViewElements(parent, view);
        showMapText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                PlaceDisplay.actionStart(v.getContext(),location);
            }
        });
    }
}

@@ -132,51 +132,32 @@
 ort 
-it.gmariotti.cardslib.library.internal.Card
+moe.akagi.chibaproject.R
 ;%0Aim
@@ -176,33 +176,55 @@
 gi.chibaproject.
-R
+activity.PlaceMapCreate
 ;%0Aimport moe.aka
@@ -249,24 +249,27 @@
 tivity.Place
+Map
 Display;%0Aimp
@@ -310,16 +310,65 @@
 e.Event;
+%0Aimport moe.akagi.chibaproject.datatype.Location;
 %0A%0A/**%0A *
@@ -1051,24 +1051,26 @@
 k(View v) %7B%0A
+//
             
@@ -1078,16 +1078,19 @@
    Place
+Map
 Display.
@@ -1120,16 +1120,117 @@
 t(),
-location
+new Location(%22Test Location%22,40,30,30.27,120.132));%0A                PlaceMapCreate.actionStart(v.getContext()
 );%0A 

Add click for map activity test