// Path: app/src/main/java/io/github/droidkaigi/confsched/model/PlaceMap.java
// public class PlaceMap {
// 
//     @StringRes
//     public final int nameRes;
// 
//     @StringRes
//     public final int buildingNameRes;
// 
//     @DrawableRes
//     public final int markerRes;
// 
//     public final double latitude;
// 
//     public final double longitude;
// 
//     public PlaceMap(int nameRes, int buildingNameRes, int markerRes, double latitude, double longitude) {
//         this.nameRes = nameRes;
//         this.buildingNameRes = buildingNameRes;
//         this.markerRes = markerRes;
//         this.latitude = latitude;
//         this.longitude = longitude;
//     }
// 
//     public static List<PlaceMap> createList() {
//         List<PlaceMap> list = new ArrayList<>(4);
// 
//         list.add(new PlaceMap(R.string.map_main_name, R.string.map_main_building,
//                 R.drawable.ic_place_red_500_36dp_vector, 35.605899, 139.683541));
//         list.add(new PlaceMap(R.string.map_ab_name, R.string.map_ab_building,
//                 R.drawable.ic_place_green_500_36dp_vector, 35.603012, 139.684206));
//         list.add(new PlaceMap(R.string.map_cd_name, R.string.map_cd_building,
//                 R.drawable.ic_place_blue_500_36dp_vector, 35.603352, 139.684249));
//         list.add(new PlaceMap(R.string.map_party_name, R.string.map_party_building,
//                 R.drawable.ic_place_purple_500_36dp_vector, 35.607513, 139.684689));
// 
//         return list;
//     }
// 
// }


import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.Interpolator;
import android.widget.FrameLayout;
import io.codetail.animation.ViewAnimationUtils;
import io.github.droidkaigi.confsched.R;
import io.github.droidkaigi.confsched.databinding.ViewMapSearchBinding;
import io.github.droidkaigi.confsched.model.PlaceMap;
import io.github.droidkaigi.confsched.util.LocaleUtil;
import java.util.List;
import rx.Observable;
package io.github.droidkaigi.confsched.widget;


public class MapSearchView extends FrameLayout {

    private static final Interpolator INTERPOLATOR = new AccelerateDecelerateInterpolator();

    private ViewMapSearchBinding binding;

    private OnVisibilityChangeListener onVisibilityChangeListener;

    public MapSearchView(Context context) {
        this(context, null);
    }

    public MapSearchView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public MapSearchView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        binding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.view_map_search, this, true);
    }

// Path: app/src/main/java/io/github/droidkaigi/confsched/model/PlaceMap.java
// public class PlaceMap {
// 
//     @StringRes
//     public final int nameRes;
// 
//     @StringRes
//     public final int buildingNameRes;
// 
//     @DrawableRes
//     public final int markerRes;
// 
//     public final double latitude;
// 
//     public final double longitude;
// 
//     public PlaceMap(int nameRes, int buildingNameRes, int markerRes, double latitude, double longitude) {
//         this.nameRes = nameRes;
//         this.buildingNameRes = buildingNameRes;
//         this.markerRes = markerRes;
//         this.latitude = latitude;
//         this.longitude = longitude;
//     }
// 
//     public static List<PlaceMap> createList() {
//         List<PlaceMap> list = new ArrayList<>(4);
// 
//         list.add(new PlaceMap(R.string.map_main_name, R.string.map_main_building,
//                 R.drawable.ic_place_red_500_36dp_vector, 35.605899, 139.683541));
//         list.add(new PlaceMap(R.string.map_ab_name, R.string.map_ab_building,
//                 R.drawable.ic_place_green_500_36dp_vector, 35.603012, 139.684206));
//         list.add(new PlaceMap(R.string.map_cd_name, R.string.map_cd_building,
//                 R.drawable.ic_place_blue_500_36dp_vector, 35.603352, 139.684249));
//         list.add(new PlaceMap(R.string.map_party_name, R.string.map_party_building,
//                 R.drawable.ic_place_purple_500_36dp_vector, 35.607513, 139.684689));
// 
//         return list;
//     }
// 
// }


// Path: app/src/main/java/io/github/droidkaigi/confsched/widget/MapSearchView.java
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.Interpolator;
import android.widget.FrameLayout;
import io.codetail.animation.ViewAnimationUtils;
import io.github.droidkaigi.confsched.R;
import io.github.droidkaigi.confsched.databinding.ViewMapSearchBinding;
import io.github.droidkaigi.confsched.model.PlaceMap;
import io.github.droidkaigi.confsched.util.LocaleUtil;
import java.util.List;
import rx.Observable;

package io.github.droidkaigi.confsched.widget;


public class MapSearchView extends FrameLayout {

    private static final Interpolator INTERPOLATOR = new AccelerateDecelerateInterpolator();

    private ViewMapSearchBinding binding;

    private OnVisibilityChangeListener onVisibilityChangeListener;

    public MapSearchView(Context context) {
        this(context, null);
    }

    public MapSearchView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public MapSearchView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        binding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.view_map_search, this, true);
    }

    public void bindData(List<PlaceMap> placeMaps, OnItemClickListener listener) {