Example #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   CURRENT_KEY = PERSON_DATA_KEY;
   setContentView(R.layout.personcentered);
   overridePendingTransition(R.anim.push_in, R.anim.push_out);
   SharedPreferences settings = getSharedPreferences("loginInfo", Activity.MODE_PRIVATE);
   loginName = settings.getString("LOGINNAME", "");
   init();
 }
Example #2
0
 @Override
 public void onClick(View v) {
   super.onClick(v);
   switch (v.getId()) {
     case R.id.person_info:
       // 换底色
       person_info.setBackgroundResource(R.drawable.phone_study_tab_bg);
       qccount_info.setBackgroundResource(R.drawable.phone_study_tab_bg2);
       change_password.setBackgroundResource(R.drawable.phone_study_tab_bg2);
       // 换字
       person_info.setTextColor(getResources().getColor(R.color.phone_study_color_black));
       qccount_info.setTextColor(getResources().getColor(R.color.phone_study_color_White));
       change_password.setTextColor(getResources().getColor(R.color.phone_study_color_White));
       SwitchActivity(0);
       break;
     case R.id.qccount_info:
       person_info.setBackgroundResource(R.drawable.phone_study_tab_bg2);
       qccount_info.setBackgroundResource(R.drawable.phone_study_tab_bg);
       change_password.setBackgroundResource(R.drawable.phone_study_tab_bg2);
       // 换字
       person_info.setTextColor(getResources().getColor(R.color.phone_study_color_White));
       qccount_info.setTextColor(getResources().getColor(R.color.phone_study_color_black));
       change_password.setTextColor(getResources().getColor(R.color.phone_study_color_White));
       SwitchActivity(1);
       break;
     case R.id.change_password:
       person_info.setBackgroundResource(R.drawable.phone_study_tab_bg2);
       qccount_info.setBackgroundResource(R.drawable.phone_study_tab_bg2);
       change_password.setBackgroundResource(R.drawable.phone_study_tab_bg);
       // 换字
       person_info.setTextColor(getResources().getColor(R.color.phone_study_color_White));
       qccount_info.setTextColor(getResources().getColor(R.color.phone_study_color_White));
       change_password.setTextColor(getResources().getColor(R.color.phone_study_color_black));
       SwitchActivity(2);
       break;
   }
 }
Example #3
0
 @Override
 protected void onPause() {
   super.onPause();
   PersonCenter.this.finish();
 }
Example #4
0
 @Override
 protected void onDestroy() {
   ContainerActivity.activities.remove(this);
   super.onDestroy();
 }