@OnClick({R.id.mid_left_ys, R.id.mid_right_yy})
 public void midIcon(TextView textView) {
   if (tempTv != textView)
     if (textView.getId() == R.id.mid_left_ys) {
       midLeftText.setTextColor(getResources().getColor(R.color.white));
       midLeftText.setBackgroundResource(R.drawable.bg_tab_left_hl);
       midRightText.setTextColor(getResources().getColor(R.color.global_title_color));
       midRightText.setBackgroundResource(R.drawable.bg_tab_right);
       tempTv = midLeftText;
       NetworkAPI.getNetworkAPI()
           .chuzhenbydoc(
               getApp().getLongitude() + "",
               getApp().getLatitude() + "",
               showProgressDialog(),
               this);
     } else {
       midLeftText.setTextColor(getResources().getColor(R.color.global_title_color));
       midLeftText.setBackgroundResource(R.drawable.bg_tab_left);
       midRightText.setTextColor(getResources().getColor(R.color.white));
       midRightText.setBackgroundResource(R.drawable.bg_tab_right_hl);
       tempTv = midRightText;
       NetworkAPI.getNetworkAPI()
           .nearbyhosp(
               getApp().getLongitude() + "",
               getApp().getLatitude() + "",
               showProgressDialog(),
               this);
     }
 }
 @Override
 protected void initData() {
   tempTv = midLeftText;
   type.setText("出诊");
   listView.setOnItemClickListener(
       new AdapterView.OnItemClickListener() {
         @Override
         public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
           if (isDoc) {
             Intent intent =
                 new Intent(PatientChuZhenActivity.this, PatientDoctorIntroduceActivity.class);
             intent.putExtra("did", patNearDocs.get(position).getDid());
             startActivity(intent);
           } else {
             Intent intent =
                 new Intent(PatientChuZhenActivity.this, PatientHospitalIntroduceActivity.class);
             intent.putExtra("hospitalid", patNearHosps.get(position).getHospitalid());
             startActivity(intent);
           }
         }
       });
   NetworkAPI.getNetworkAPI()
       .chuzhenbydoc("121.422467" + "", "31.242112" + "", showProgressDialog(), this);
   //        NetworkAPI.getNetworkAPI().nearbydoc(getApp().getLongitude() + "",
   // getApp().getLatitude() + "", showProgressDialog(), this);
 }
 @Override
 public void onClick(View v) {
   if (TextUtils.isEmpty(content.getText().toString()))
     showToast(getString(R.string.publish_no_empty));
   else {
     if (flag)
       NetworkAPI.getNetworkAPI()
           .docpublish(
               content.getText().toString(),
               checkBox.isChecked() ? "1" : "0",
               showProgressDialog(),
               DoctorPublishActivity.this);
     else
       NetworkAPI.getNetworkAPI()
           .docpublishnoimg(
               content.getText().toString(),
               checkBox.isChecked() ? "1" : "0",
               showProgressDialog(),
               DoctorPublishActivity.this);
   }
 }