// Path: app/src/main/java/com/yoga/oneweather/model/db/CityDao.java
// public class CityDao extends DataSupport {
//     /**
//      * city_unselected : 南子岛
//      * cnty : 中国
//      * cityID : CN101310230
//      * lat : 11.26
//      * lon : 114.20
//      * prov : 海南
//      */
//     @Column(ignore = true)
//     private String mInitial = "#";
// 
//     private String cityName;
//     private String cityId;
//     private String pinyin;
// 
// 
//     public String getmInitial() {
//         return mInitial;
//     }
// 
//     public void setmInitial(String mInitial) {
//         this.mInitial = mInitial;
//     }
// 
//     public String getCityName() {
//         return cityName;
//     }
// 
//     public void setCityName(String cityName) {
//         this.cityName = cityName;
//     }
// 
//     public String getCityId() {
//         return cityId;
//     }
// 
//     public void setCityId(String id) {
//         this.cityId = id;
//     }
// 
//     public String getPinyin() {
//         return pinyin;
//     }
// 
//     public void setPinyin(String pinyin) {
//         this.pinyin = pinyin;
//     }
// }


import android.support.v4.util.Pair;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.yoga.oneweather.R;
import com.yoga.oneweather.model.db.CityDao;
import java.util.ArrayList;
import java.util.List;
package com.yoga.oneweather.city;




/**
 * Created by wyg on 2017/7/24.
 */

public class SearchViewAdapter extends RecyclerView.Adapter {
    private final int ITEM_HEADER = 0;
    private final int ITEM_CITY = 1;
    public final static int LOCATE_SUCCESS = 111;
    public final static int LOCATE_ING  = 222;
    public final static int LOCATE_FAILED = 333;


    private int locateState = LOCATE_ING;

// Path: app/src/main/java/com/yoga/oneweather/model/db/CityDao.java
// public class CityDao extends DataSupport {
//     /**
//      * city_unselected : 南子岛
//      * cnty : 中国
//      * cityID : CN101310230
//      * lat : 11.26
//      * lon : 114.20
//      * prov : 海南
//      */
//     @Column(ignore = true)
//     private String mInitial = "#";
// 
//     private String cityName;
//     private String cityId;
//     private String pinyin;
// 
// 
//     public String getmInitial() {
//         return mInitial;
//     }
// 
//     public void setmInitial(String mInitial) {
//         this.mInitial = mInitial;
//     }
// 
//     public String getCityName() {
//         return cityName;
//     }
// 
//     public void setCityName(String cityName) {
//         this.cityName = cityName;
//     }
// 
//     public String getCityId() {
//         return cityId;
//     }
// 
//     public void setCityId(String id) {
//         this.cityId = id;
//     }
// 
//     public String getPinyin() {
//         return pinyin;
//     }
// 
//     public void setPinyin(String pinyin) {
//         this.pinyin = pinyin;
//     }
// }


// Path: app/src/main/java/com/yoga/oneweather/city/SearchViewAdapter.java
import android.support.v4.util.Pair;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.yoga.oneweather.R;
import com.yoga.oneweather.model.db.CityDao;
import java.util.ArrayList;
import java.util.List;

package com.yoga.oneweather.city;




/**
 * Created by wyg on 2017/7/24.
 */

public class SearchViewAdapter extends RecyclerView.Adapter {
    private final int ITEM_HEADER = 0;
    private final int ITEM_CITY = 1;
    public final static int LOCATE_SUCCESS = 111;
    public final static int LOCATE_ING  = 222;
    public final static int LOCATE_FAILED = 333;


    private int locateState = LOCATE_ING;

    private List<CityDao> cityDaoList;//所有城市