From f552dcacf2f56ac4ccaafeb2803aa7922dea8b4b Mon Sep 17 00:00:00 2001 From: 陶汉栋 <2821744554@qq.com> Date: Thu, 15 Mar 2018 08:39:56 +0800 Subject: [PATCH] no message --- app/src/main/java/com/shunzhi/parent/presenter/ceping/CePingPresenter.java | 7 ------- app/src/main/java/com/shunzhi/parent/ui/activity/binding/SelectSchoolActivity.java | 22 +++++++++++++++++++++- app/src/main/java/com/shunzhi/parent/ui/fragment/CePingFragment.java | 16 +++++++++++++++- app/src/main/java/com/shunzhi/parent/ui/fragment/ConsultFragment.java | 15 ++++++++++++++- app/src/main/java/com/shunzhi/parent/ui/fragment/consult/ConsultOneLevelFragment.java | 14 -------------- app/src/main/res/layout/layout_textandimgshow.xml | 4 ++-- 6 files changed, 52 insertions(+), 26 deletions(-) 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