diff --git a/app/src/main/java/com/shunzhi/parent/presenter/ceping/CePingPresenter.java b/app/src/main/java/com/shunzhi/parent/presenter/ceping/CePingPresenter.java index 42febf5..adadc88 100644 --- a/app/src/main/java/com/shunzhi/parent/presenter/ceping/CePingPresenter.java +++ b/app/src/main/java/com/shunzhi/parent/presenter/ceping/CePingPresenter.java @@ -1,7 +1,5 @@ package com.shunzhi.parent.presenter.ceping; -import android.content.res.TypedArray; -import android.util.TypedValue; import android.view.View; import android.widget.LinearLayout; @@ -27,11 +25,6 @@ public class CePingPresenter extends CepingContract.CePingPresenter { toolBeanList.add(new ToolBean(R.drawable.zycx+"","专业查询")); toolBeanList.add(new ToolBean(R.drawable.cmyk+"","传媒艺考")); toolBeanList.add(new ToolBean(R.drawable.phb+"","排行榜")); - toolBeanList.add(new ToolBean(R.drawable.phb+"","排行榜")); - toolBeanList.add(new ToolBean(R.drawable.phb+"","排行榜")); - toolBeanList.add(new ToolBean(R.drawable.phb+"","排行榜")); - toolBeanList.add(new ToolBean(R.drawable.phb+"","排行榜")); - for (int i = 0; i < toolBeanList.size(); i++) { TextAndImgShowView textAndImgShowView=new TextAndImgShowView(mIView.getBindActivity()); textAndImgShowView.setTextColor(R.color.textColor); diff --git a/app/src/main/java/com/shunzhi/parent/ui/activity/binding/SelectSchoolActivity.java b/app/src/main/java/com/shunzhi/parent/ui/activity/binding/SelectSchoolActivity.java index cf05d01..038f5d2 100644 --- a/app/src/main/java/com/shunzhi/parent/ui/activity/binding/SelectSchoolActivity.java +++ b/app/src/main/java/com/shunzhi/parent/ui/activity/binding/SelectSchoolActivity.java @@ -27,12 +27,15 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; +import me.leefeng.citypicker.CityPicker; +import me.leefeng.citypicker.CityPickerListener; + /** * Created by Administrator on 2018/3/12 0012. */ public class SelectSchoolActivity extends BaseMVPCompatActivity implements - View.OnClickListener, SchoolListContract.ISchoolListView { + View.OnClickListener, SchoolListContract.ISchoolListView,CityPickerListener { private SideBar sideBar; private TextView dialog, go_next, tvLocalAddress; @@ -40,6 +43,7 @@ public class SelectSchoolActivity extends BaseMVPCompatActivity list = new ArrayList<>(); SchoolListAdapter schoolListAdapter; + CityPicker cityPicker=null; @NonNull @Override public BasePresenter initPresenter() { @@ -53,6 +57,7 @@ public class SelectSchoolActivity extends BaseMVPCompatActivity implements CepingContract.ICePingView - ,View.OnClickListener{ + ,View.OnClickListener,CityPickerListener{ TextView tvLocalAddress; @@ -40,6 +43,8 @@ public class CePingFragment extends BaseMVPCompatFragment implements View.OnClickListener -,ConsultContract.IConsultView{ +,ConsultContract.IConsultView,CityPickerListener{ ImageView ivSearch; @@ -48,6 +50,8 @@ public class ConsultFragment extends BaseMVPCompatFragment - - + --> \ No newline at end of file -- libgit2 0.21.0