Pq пре 1 година
родитељ
комит
d950bfb991

+ 1 - 1
institution/src/main/res/layout/jg_layout_message_nox_item.xml

@@ -48,7 +48,7 @@
         android:layout_marginTop="3dp"
         android:layout_marginRight="17dp"
         android:ellipsize="end"
-        android:maxLines="5"
+        android:maxLines="2"
         android:textColor="@color/color_7a7a7a"
         android:textSize="@dimen/sp_13"
         app:layout_constraintLeft_toLeftOf="parent"

+ 9 - 0
teacher/src/main/java/com/cooleshow/teacher/ui/mine/SelectTenantMemberActivity.java

@@ -35,6 +35,7 @@ import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Locale;
 
 import androidx.annotation.NonNull;
 import androidx.annotation.Nullable;
@@ -105,6 +106,7 @@ public class SelectTenantMemberActivity extends BaseMVPActivity<AcSelectTenantMe
         viewBinding.recyclerView.addItemDecoration(mDecoration);
         viewBinding.recyclerView.setLayoutManager(linearLayoutManager);
         viewBinding.recyclerView.setAdapter(mMemberAdapter);
+        updateCount();
         initListener();
 
         getData();
@@ -149,6 +151,7 @@ public class SelectTenantMemberActivity extends BaseMVPActivity<AcSelectTenantMe
                 if (position < mMemberAdapter.getData().size()) {
                     StudentPageListBean.RowsBean rowsBean = mMemberAdapter.getData().get(position);
                     mMemberAdapter.addSelect(position, rowsBean);
+                    updateCount();
                 }
             }
         });
@@ -162,6 +165,12 @@ public class SelectTenantMemberActivity extends BaseMVPActivity<AcSelectTenantMe
         });
     }
 
+    private void updateCount() {
+        ArrayList<StudentPageListBean.RowsBean> select = mMemberAdapter.getSelect();
+        int count = select != null ? select.size() : 0;
+        viewBinding.tvConfirm.setText(String.format(Locale.getDefault(),"完成(%d)", count));
+    }
+
     @Override
     protected void onResume() {
         super.onResume();