private void setDisplayNameUi() {
   if (AccountServiceUtils.getBorqsAccountID() == mUser.uid) {
     tv_user_name.setText(mUser.nick_name);
     tv_user_name.setOnClickListener(null);
   } else {
     if (StringUtil.isValidString(mUser.circleId)) {
       tv_user_name.setText(StringUtil.formatRemarkHtmlString(mUser.nick_name, showRemarkName()));
     } else {
       tv_user_name.setText(mUser.nick_name);
       tv_user_name.setOnClickListener(null);
     }
   }
 }
  private String showRemarkName() {
    String remarkname = getString(R.string.profile_remark);
    if (StringUtil.isEmpty(mUser.remark) == false) {
      remarkname = mUser.remark;
    } else {
      //            if(mUser.perhapsNames != null && mUser.perhapsNames.size() > 0) {
      //                PerhapsName tmpPerhapsName = new PerhapsName();
      //                tmpPerhapsName.name = mUser.nick_name;
      //
      //                if(mUser.perhapsNames.contains(tmpPerhapsName)) {
      //                    mUser.perhapsNames.remove(tmpPerhapsName);
      //                }
      //
      //                for(int i=0; i<mUser.perhapsNames.size(); i++) {
      //                    if(mUser.nick_name.equals(mUser.perhapsNames.get(i).name) == false) {
      //                        remarkname = mUser.perhapsNames.get(i).name;
      //                        break;
      //                    }
      //                }
      //            }
    }
    //        if(remarkname.length() > 0) {
    //            remarkname = "(" + remarkname + ")";
    //        }

    return remarkname;
  }
  private void formatPhoneNumberContent(
      StringBuilder sb, int resId, String val, int type, boolean title) {
    if (StringUtil.isEmpty(val) == true) return;

    if (isDetached()) { // if fragment detached , do nothing
      return;
    }

    sb.append("<tr valign=\"top\" >");
    sb.append(String.format("<td width='%1$s' align=\"left\" valign=\"top\">", width / 2));
    sb.append(getString(resId));
    sb.append(":</td>");
    switch (type) {
      case TYPE_TEXT:
        if (title == true)
          sb.append(
              String.format(
                  "<td style=\"color: #000000; font-size: 16sp\" \"word-WRAP:break-all\" align=\"left\" valign=\"top\" width='%2$s'><b>%1$s</b></td>",
                  formatHtml(val, title), width / 2));
        else
          sb.append(
              String.format(
                  "<td style=\"color: #333333;\" \"word-WRAP:break-all\" align=\"left\" valign=\"top\" width='%2$s'>%1$s</td>",
                  formatHtml(val, title), width / 2));
        break;
      default:
        return;
    }
    sb.append("</tr>");
  }
 private void setprivacyTextValue(String circleid) {
   Resources res = getResources();
   if (StringUtil.isValidString(circleid)) {
     if (isInMyprivacyCircle(circleid)) {
       // set status of request
       id_user_in_privacy_circle.setVisibility(View.VISIBLE);
       id_user_in_privacy_circle.setText(res.getString(R.string.people_circle_summary));
       if (mUser.profile_privacy
           && BpcFriendsItemView.isalreadyRequestProfile(mUser.pedding_requests)) {
         id_user_in_privacy_circle.setText(res.getString(R.string.already_send_request));
       } else if (!mUser.profile_privacy) {
         id_user_in_privacy_circle.setText(res.getString(R.string.already_exchange_info));
       }
     } else {
       if (mUser.profile_privacy
           && BpcFriendsItemView.isalreadyRequestProfile(mUser.pedding_requests)) {
         id_user_in_privacy_circle.setVisibility(View.VISIBLE);
         id_user_in_privacy_circle.setText(res.getString(R.string.already_send_request));
       } else {
         id_user_in_privacy_circle.setVisibility(View.GONE);
       }
     }
   } else {
     id_user_in_privacy_circle.setVisibility(View.GONE);
   }
 }
 private void setrequestStatusUi() {
   // set attention
   if (mUser.uid == AccountServiceUtils.getBorqsAccountID()) {
     //			request_concern.setVisibility(View.GONE);
   } else {
     if (StringUtil.isValidString(mUser.circleId)) {
       if (mUser.his_friend) {
         if (mUser.profile_privacy
             && (!StringUtil.isValidString(mUser.pedding_requests)
                 || !BpcFriendsItemView.isalreadyRequestProfile(mUser.pedding_requests))) {
           //						request_concern.setVisibility(View.VISIBLE);
           //						request_concern.setText(R.string.request_see_user_profile);
         } else {
           //						request_concern.setVisibility(View.GONE);
         }
       } else {
         //					request_concern.setText(R.string.request_concern);
         //					request_concern.setVisibility(View.VISIBLE);
       }
     } else {
       //				request_concern.setVisibility(View.GONE);
     }
   }
 }