@@ -47,6 +47,7 @@ public class HistoryGroupAdapter extends RecyclerView.Adapter<HistoryGroupAdapte  | 
            ||
| 47 | 47 | 
                viewHolder.time = (TextView)view.findViewById(R.id.tv_group_create_time);  | 
            
| 48 | 48 | 
                viewHolder.delete = (TextView)view.findViewById(R.id.tv_trash);  | 
            
| 49 | 49 | 
                viewHolder.contentView = view.findViewById(R.id.history_group_item_view);  | 
            
| 50 | 
                + viewHolder.number = (TextView)view.findViewById(R.id.tv_group_photo_num);  | 
            |
| 50 | 51 | 
                viewHolder.swipeLayout = (SwipeLayout) view;  | 
            
| 51 | 52 | 
                return viewHolder;  | 
            
| 52 | 53 | 
                }  | 
            
                @@ -56,6 +57,11 @@ public class HistoryGroupAdapter extends RecyclerView.Adapter<HistoryGroupAdapte  | 
            ||
| 56 | 57 | 
                final GroupInfo info = groupList.get(position);  | 
            
| 57 | 58 | 
                holder.time.setText(TimeUtils.getFormattedTime(info.createTime));  | 
            
| 58 | 59 | 
                holder.name.setText(info.groupName);  | 
            
| 60 | 
                +        if(info.groupPhotoNum==0){
               | 
            |
| 61 | 
                + holder.number.setText(R.string.no_photo_in_group);  | 
            |
| 62 | 
                +        }else{
               | 
            |
| 63 | 
                + holder.number.setText(context.getString(R.string.photo_in_group,info.groupPhotoNum));  | 
            |
| 64 | 
                + }  | 
            |
| 59 | 65 | 
                holder.avatar.setImageResource(GroupCreateUtils.getDrawableIdForAvatar(info.groupAvatarId));  | 
            
| 60 | 66 | 
                         holder.contentView.setOnClickListener(new View.OnClickListener() {
               | 
            
| 61 | 67 | 
                @Override  | 
            
                @@ -117,6 +123,7 @@ public class HistoryGroupAdapter extends RecyclerView.Adapter<HistoryGroupAdapte  | 
            ||
| 117 | 123 | 
                private ImageView avatar;  | 
            
| 118 | 124 | 
                private TextView name;  | 
            
| 119 | 125 | 
                private TextView time;  | 
            
| 126 | 
                + private TextView number;  | 
            |
| 120 | 127 | 
                private View contentView;  | 
            
| 121 | 128 | 
                private TextView delete;  | 
            
| 122 | 129 | 
                private SwipeLayout swipeLayout;  | 
            
                @@ -48,7 +48,7 @@  | 
            ||
| 48 | 48 | 
                 | 
            
| 49 | 49 | 
                <TextView  | 
            
| 50 | 50 | 
                android:id="@+id/tv_group_create_time"  | 
            
| 51 | 
                - android:layout_width="wrap_content"  | 
            |
| 51 | 
                + android:layout_width="100dp"  | 
            |
| 52 | 52 | 
                android:layout_height="wrap_content"  | 
            
| 53 | 53 | 
                android:layout_below="@id/tv_group_name"  | 
            
| 54 | 54 | 
                android:layout_marginLeft="8dp"  | 
            
                @@ -57,5 +57,16 @@  | 
            ||
| 57 | 57 | 
                android:textColor="@color/grey"  | 
            
| 58 | 58 | 
                android:textSize="14sp" />  | 
            
| 59 | 59 | 
                 | 
            
| 60 | 
                + <TextView  | 
            |
| 61 | 
                + android:id="@+id/tv_group_photo_num"  | 
            |
| 62 | 
                + android:layout_width="wrap_content"  | 
            |
| 63 | 
                + android:layout_height="wrap_content"  | 
            |
| 64 | 
                + android:layout_below="@id/tv_group_name"  | 
            |
| 65 | 
                + android:layout_marginLeft="8dp"  | 
            |
| 66 | 
                + android:layout_marginTop="6dp"  | 
            |
| 67 | 
                + android:layout_toRightOf="@id/tv_group_create_time"  | 
            |
| 68 | 
                + android:textColor="@color/grey"  | 
            |
| 69 | 
                + android:textSize="14sp" />  | 
            |
| 70 | 
                +  | 
            |
| 60 | 71 | 
                </RelativeLayout>  | 
            
| 61 | 72 | 
                </com.android.views.swipeLayout.SwipeLayout>  | 
            
                @@ -256,4 +256,8 @@  | 
            ||
| 256 | 256 | 
                <string name="click_to_add_group">点我可以新建拍照群组哦</string>  | 
            
| 257 | 257 | 
                 | 
            
| 258 | 258 | 
                <string name="click_to_scan_qr"> 点我扫码加入朋友建的群组吧</string>  | 
            
| 259 | 
                +  | 
            |
| 260 | 
                + <string name="no_photo_in_group">暂无照片</string>  | 
            |
| 261 | 
                +  | 
            |
| 262 | 
                + <string name="photo_in_group">有%d张照片</string>  | 
            |
| 259 | 263 | 
                </resources>  |