Pq 1 рік тому
батько
коміт
9eefbd01b6

+ 2 - 0
chatModule/src/main/java/com/cooleshow/chatmodule/ui/NoticeActivity.java

@@ -26,6 +26,7 @@ import com.cooleshow.chatmodule.contract.NoticeContract;
 import com.cooleshow.chatmodule.databinding.TcActivityImAppealBinding;
 import com.cooleshow.chatmodule.databinding.TcActivityNoticeBinding;
 import com.cooleshow.chatmodule.presenter.NoticePresenter;
+import com.scwang.smart.refresh.footer.ClassicsFooter;
 import com.scwang.smart.refresh.layout.api.RefreshLayout;
 import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
 
@@ -80,6 +81,7 @@ public class NoticeActivity extends BaseMVPActivity<TcActivityNoticeBinding, Not
             viewBinding.toolbarInclude.tvRight.setVisibility(View.GONE);
         }
         targetId = getIntent().getStringExtra("targetId");
+        viewBinding.refreshLayout.setRefreshFooter(new ClassicsFooter(this).setDrawableSize(20))
         recyclerView = viewBinding.recyclerView;
         floatbutton = viewBinding.floatbutton;
         floatbutton.setOnClickListener(this);

+ 0 - 9
teacher/src/main/java/com/cooleshow/teacher/App.java

@@ -79,15 +79,6 @@ public class App extends BaseApplication {
                 return new CustomRefreshHeader(context);//.setTimeFormat(new DynamicTimeFormat("更新于 %s"));//指定为经典Header,默认是 贝塞尔雷达Header
             }
         });
-
-        //设置全局的Footer构建器
-        SmartRefreshLayout.setDefaultRefreshFooterCreator(new DefaultRefreshFooterCreator() {
-            @Override
-            public RefreshFooter createRefreshFooter(Context context, RefreshLayout layout) {
-                //指定为经典Footer,默认是 BallPulseFooter
-                return new ClassicsFooter(context).setDrawableSize(20);
-            }
-        });
     }
 
     @Override