@Override public void onClick(View v) { Bundle bundle = new Bundle(); if (v.getId() == R.id.rl_me_home) { activity.replaceFragmentAndAddToBackStack(new MyHomeFragment(), contactBundle, R.id.fl_me); } else if (v.getId() == R.id.rl_me_head) { bundle.putInt("type", UpdateMyInfoFragment.UPDATE_HEAD); activity.replaceFragmentAndAddToBackStack(new UpdateMyInfoFragment(), bundle, R.id.fl_me); } else if (v.getId() == R.id.rl_me_nickname) { bundle.putInt("type", UpdateMyInfoFragment.UPDATE_NIKENAME); activity.replaceFragmentAndAddToBackStack(new UpdateMyInfoFragment(), bundle, R.id.fl_me); } else if (v.getId() == R.id.rl_me_sex) { bundle.putInt("type", UpdateMyInfoFragment.UPDATE_SEX); activity.replaceFragmentAndAddToBackStack(new UpdateMyInfoFragment(), bundle, R.id.fl_me); } else if (v.getId() == R.id.rl_me_area) { bundle.putInt("type", UpdateMyInfoFragment.UPDATE_AREA); activity.replaceFragmentAndAddToBackStack(new UpdateMyInfoFragment(), bundle, R.id.fl_me); } else if (v.getId() == R.id.rl_me_introduction) { bundle.putInt("type", UpdateMyInfoFragment.UPDATE_ABOUT); activity.replaceFragmentAndAddToBackStack(new UpdateMyInfoFragment(), bundle, R.id.fl_me); } }
private void initTopView(View view) { activity.setTitle(activity.getResources().getString(R.string.top_title_wdzl)); activity.setRightStyle("完成", 0); }
@Override public void onResume() { super.onResume(); activity.setRightStyle("完成", 0); // 有可能在另外的Fragment里重新对右边状态进行了设置 }