|
|
@ -8,6 +8,7 @@ import android.widget.ImageView; |
|
|
|
import android.widget.LinearLayout; |
|
|
|
import android.widget.RadioGroup; |
|
|
|
import android.widget.RelativeLayout; |
|
|
|
import android.widget.TextView; |
|
|
|
|
|
|
|
import cn.shangyu.gdxzPatient.R; |
|
|
|
import cn.shangyu.gdxzPatient.fragment.ConsultFragment; |
|
|
@ -30,6 +31,7 @@ public class ConslutNewActivity extends BaseActivity implements View.OnClickList |
|
|
|
private RelativeLayout rl_more; |
|
|
|
private boolean flag; |
|
|
|
private ImageView iv_zixun_view; |
|
|
|
private TextView zixun,zixun2,wenda,wenda2; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void setTitle() { |
|
|
@ -53,6 +55,10 @@ public class ConslutNewActivity extends BaseActivity implements View.OnClickList |
|
|
|
rl_one = (LinearLayout) view.findViewById(R.id.rl_one); |
|
|
|
rl_more = view.findViewById(R.id.rl_more); |
|
|
|
iv_zixun_view = view.findViewById(R.id.iv_zixun_view); |
|
|
|
zixun = view.findViewById(R.id.zixun); |
|
|
|
zixun2 = view.findViewById(R.id.zixun2); |
|
|
|
wenda = view.findViewById(R.id.wenda); |
|
|
|
wenda2 = view.findViewById(R.id.wenda2); |
|
|
|
boolean aBoolean = SharePrefUtil.getBoolean(UIUtils.getContext(), Constant.CONSULNEWTPOINT, false); |
|
|
|
if (aBoolean){ |
|
|
|
iv_zixun_view.setVisibility(View.VISIBLE); |
|
|
@ -105,12 +111,24 @@ public class ConslutNewActivity extends BaseActivity implements View.OnClickList |
|
|
|
if (flag){ |
|
|
|
changeOneToOne(); |
|
|
|
flag = false; |
|
|
|
zixun.setTextColor(getResources().getColor(R.color.white)); |
|
|
|
zixun2.setTextColor(getResources().getColor(R.color.white)); |
|
|
|
wenda.setTextColor(getResources().getColor(R.color.tab_text_nor)); |
|
|
|
wenda2.setTextColor(getResources().getColor(R.color.tab_text_nor)); |
|
|
|
rl_one.setBackgroundColor(getResources().getColor(R.color.patient_theme)); |
|
|
|
rl_more.setBackgroundColor(getResources().getColor(R.color.white)); |
|
|
|
} |
|
|
|
break; |
|
|
|
case R.id.rl_more: |
|
|
|
if (!flag){ |
|
|
|
flag = true; |
|
|
|
changeOneToM(); |
|
|
|
zixun.setTextColor(getResources().getColor(R.color.tab_text_nor)); |
|
|
|
zixun2.setTextColor(getResources().getColor(R.color.tab_text_nor)); |
|
|
|
wenda.setTextColor(getResources().getColor(R.color.white)); |
|
|
|
wenda2.setTextColor(getResources().getColor(R.color.white)); |
|
|
|
rl_one.setBackgroundColor(getResources().getColor(R.color.white)); |
|
|
|
rl_more.setBackgroundColor(getResources().getColor(R.color.patient_theme)); |
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|