@@ -0,0 +1,1397 @@
+package com.idogfooding.backbone.ui.recyclerview;%0A%0Aimport android.support.annotation.LayoutRes;%0Aimport android.support.annotation.Nullable;%0A%0Aimport com.chad.library.adapter.base.BaseQuickAdapter;%0Aimport com.chad.library.adapter.base.BaseViewHolder;%0A%0Aimport java.util.List;%0A%0A/**%0A * BaseRecyclerViewAdapter%0A *%0A * @author Charles%0A */%0Apublic class BaseRecyclerViewAdapter%3CT, K extends BaseViewHolder%3E extends BaseQuickAdapter%3CT, K%3E %7B%0A%0A    public BaseRecyclerViewAdapter(@LayoutRes int layoutResId, @Nullable List%3CT%3E data) %7B%0A        super(layoutResId, data);%0A    %7D%0A%0A    public BaseRecyclerViewAdapter(@Nullable List%3CT%3E data) %7B%0A        super(data);%0A    %7D%0A%0A    public BaseRecyclerViewAdapter(@LayoutRes int layoutResId) %7B%0A        super(layoutResId);%0A    %7D%0A%0A    @Override%0A    protected void convert(K helper, T item) %7B%0A%0A    %7D%0A%0A    protected int getColor(int colorRes) %7B%0A        return mContext.getResources().getColor(colorRes);%0A    %7D%0A%0A    // check mode%0A    private int checkedPosition = -1;%0A%0A    public void setCheckedPosition(int position) %7B%0A        checkedPosition = position;%0A        notifyDataSetChanged();%0A    %7D%0A%0A    public int getCheckedPosition() %7B%0A        return checkedPosition;%0A    %7D%0A%0A    public T getCheckedItem() %7B%0A        if (checkedPosition %3C 0 %7C%7C checkedPosition %3E= getItemCount()) %7B%0A            return null;%0A        %7D else %7B%0A            return getItem(checkedPosition);%0A        %7D%0A    %7D%0A%7D%0A

add city choose