@Override
 public void onActivityCreated(Bundle savedInstanceState) {
   super.onActivityCreated(savedInstanceState);
   if (mWebView != null) {
     switch (mUserInfo.sex) {
       case EgmConstants.SexType.Male:
         mWebView.getWebView().loadUrl(URL_GIRL);
         break;
       case EgmConstants.SexType.Female:
         mWebView.getWebView().loadUrl(URL_MAN);
         break;
     }
   }
 }
  private void init(View root) {
    mImageBack = (TextView) root.findViewById(R.id.back);
    mImageBack.setOnClickListener(
        new OnClickListener() {
          @Override
          public void onClick(View v) {
            getActivity().finish();
          }
        });

    mProfileView = (HeadView) root.findViewById(R.id.profile);
    mProfileView.setImageUrl(
        mUserInfo.isVip, HeadView.PROFILE_SIZE_SMALL, mUserInfo.portraitUrl192, mUserInfo.sex);

    mNickTxt = (TextView) root.findViewById(R.id.nick);
    mNickTxt.setText(mUserInfo.nick);

    mLevelTxt = (TextView) root.findViewById(R.id.level);
    String levelStr = String.format(getResources().getString(R.string.level_num), mUserInfo.level);
    mLevelTxt.setText(levelStr + " " + mUserInfo.levelName);

    mShowTxt = (ProgressTextView) root.findViewById(R.id.show);
    if (mUserInfo.level >= 10) {
      mShowTxt.setMaxLevel();
    } else if (mUserInfo.level < 10) {
      mShowTxt.setProgress(mUserInfo.usercp, mUserInfo.nextUsercp);
    }

    mLevelNameTxt = (TextView) root.findViewById(R.id.level_name);
    mLevelNameTxt.setText(
        String.format(getResources().getString(R.string.level_num), mUserInfo.nextLevel));

    mWebView = (CustomWebView) root.findViewById(R.id.webview);
    mWebView.getWebView().requestFocus();
    mWebView.getWebView().clearCache(true);
    mWebView.getWebView().setWebViewClient(mWebViewClient);
  }