ser) listView.getItemAtPosition(position));
                    if (user != null && user.getUserInfo() != null) {
                        startActivity(new Intent(getActivity(), UserDetailsActivity.class).putExtra(FXConstant.KEY_USER_INFO, user.getUserInfo()));
                    }


                } catch (NullPointerException e) {
                    e.printStackTrace();

                }

            }
        });

    }

    @Override
    public void onDestroy() {
        super.onDestroy();

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.re_newfriends:
                // 进入申请与通知页面
                startActivity(new Intent(getActivity(), NewFriendsActivity.class));
                break;
            case R.id.re_chatroom:
                // 进入群聊列表页面
                startActivity(new Intent(getActivity(), GroupListActivity.class));
                break;
            case R.id.re_tag:
                //进入直播间
//                startActivity(new Intent(getActivity(), ChatActivity.class).putExtra("chatType", 3).
//                        putExtra("userId",FXConstant.FXLIVE_CHATROOM_ID));
                startActivity(new Intent(getActivity(), LivesActivity.class));
                break;
            case R.id.re_public:
                //进入Robot列表页面
                startActivity(new Intent(getActivity(), LiveActivity.class));
                break;

            default:
                break;
        }
    }

    @Override
    public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
        super.onCreateContextMenu(menu, v, menuInfo);
        toBeProcessUser = (EaseUser) listView.getItemAtPosition(((AdapterContextMenuInfo) menuInfo).position);
        toBeProcessUsername = toBeProcessUser.getUsername();
        getActivity().getMenuInflater().inflate(R.menu.em_context_contact_list, menu);
    }

    @Override
    public boolean onContextItemSelected(MenuItem item) {
    