コード例 #1
0
 private void measureAvatars() {
   int i = this.lineLayout.leftMargin;
   for (int j = 0; j < this.mMembersElements.length; j++) {
     RoundAvatarElement localRoundAvatarElement = this.mMembersElements[j];
     if (localRoundAvatarElement != null) {
       localRoundAvatarElement.measure(
           i + this.memberLayout.leftMargin,
           this.memberLayout.topMargin,
           i + this.memberLayout.getRight(),
           this.memberLayout.getBottom());
       i += this.memberLayout.getRight();
     }
   }
 }
コード例 #2
0
 public void update(String paramString, Object paramObject) {
   if (paramString.equalsIgnoreCase("setData")) {
     this.mInfos = ((List) paramObject);
     if (this.mInfos == null) break label274;
   }
   label274:
   for (int i = this.mInfos.size(); ; i = 0) {
     int j = Math.min(i, 4);
     int k = 0;
     if (k < j) {
       if (this.mMembersElements[k] == null) {
         RoundAvatarElement localRoundAvatarElement1 = new RoundAvatarElement(getContext());
         localRoundAvatarElement1.setDefaultImageRes(2130837698);
         localRoundAvatarElement1.setImageUrl(((UserInfo) this.mInfos.get(k)).snsInfo.sns_avatar);
         this.mMembersElements[k] = localRoundAvatarElement1;
         addElement(localRoundAvatarElement1, this.mHash);
       }
       while (true) {
         k++;
         break;
         RoundAvatarElement localRoundAvatarElement2 = this.mMembersElements[k];
         localRoundAvatarElement2.setImageUrl(((UserInfo) this.mInfos.get(k)).snsInfo.sns_avatar);
         localRoundAvatarElement2.setVisible(0);
       }
     }
     if (j < 4)
       for (int m = j; m < 4; m++)
         if (this.mMembersElements[m] != null) this.mMembersElements[m].setVisible(4);
     if (this.mNeedMeasure) measureAvatars();
     do {
       do {
         return;
         if (!paramString.equalsIgnoreCase("setCnt")) break;
       } while (paramObject == null);
       this.mNumberElement.setText(String.valueOf(paramObject));
       return;
     } while (!paramString.equalsIgnoreCase("needfillline"));
     this.mNeedMatchParentLine = true;
     return;
   }
 }