@Override public void initReplaceView() { FrameLayout base_centent = (FrameLayout) findViewById(R.id.base_content); View view = View.inflate(FriendDatelActivity.this, R.layout.my_friend_datel, null); base_centent.addView(view); AppManager.getAppManager().addActivity(this); intent = getIntent(); if (intent != null) { myFriendsList = (MyFriendsList) intent.getSerializableExtra(HeadBaseActivity.intentKey); } initview(view); }
@Override public void onClick(View v) { switch (v.getId()) { case R.id.btn_top_left: AppManager.getAppManager().finishActivity(FriendDatelActivity.this); break; case R.id.btn_send_message: if (datalResult.p.friendDetails != null) { Intent intent = new Intent(FriendDatelActivity.this, ChatActivity.class); intent.putExtra(HeadBaseActivity.intentKey, datalResult.p.friendDetails.nickname); intent.putExtra(HeadBaseActivity.intentKey + 1, datalResult.p.friendDetails.userId); startActivity(intent); } break; case R.id.btn_del: if (datalResult.p.friendDetails != null) { delFriend(datalResult.p.friendDetails.userId); } break; } }