コード例 #1
0
 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);
   }
 }
コード例 #2
0
 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);
     }
   }
 }
コード例 #3
0
 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);
     }
   }
 }