浏览代码

修改部分问题

Pq 1 年之前
父节点
当前提交
b6fa0327c5

+ 1 - 0
BaseLibrary/src/main/res/drawable/selector_check_bt_20dp_v2.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="http://schemas.android.com/apk/res/android">
     <item android:drawable="@drawable/icon_check_select2" android:state_checked="true" />
+    <item android:drawable="@drawable/icon_check_select2" android:state_selected="true" />
     <item android:drawable="@drawable/icon_check_normal2"/>
 </selector>

+ 2 - 0
musicMerge/src/main/java/com/cooleshow/musicmerge/ui/work/MyWorkDraftFragment.java

@@ -23,6 +23,7 @@ import com.cooleshow.musicmerge.bean.MyWorkListBean;
 import com.cooleshow.musicmerge.contract.MyWorkContract;
 import com.cooleshow.musicmerge.databinding.FgMyWorkDraftLayoutBinding;
 import com.cooleshow.musicmerge.presenter.work.MyWorkPresenter;
+import com.scwang.smart.refresh.footer.ClassicsFooter;
 import com.scwang.smart.refresh.layout.api.RefreshLayout;
 import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
 import com.tbruyelle.rxpermissions3.RxPermissions;
@@ -61,6 +62,7 @@ public class MyWorkDraftFragment extends BaseMVPFragment<FgMyWorkDraftLayoutBind
     @Override
     protected void initData() {
         mListAdapter = new MyDraftWorkListAdapter();
+        mViewBinding.refreshLayout.setRefreshFooter(new ClassicsFooter(getContext()));
         EmptyViewLayout emptyViewLayout = new EmptyViewLayout(getContext());
         emptyViewLayout.setContent(com.cooleshow.base.R.drawable.icon_empty_content, "暂无内容");
         mListAdapter.setEmptyView(emptyViewLayout);

+ 2 - 0
musicMerge/src/main/java/com/cooleshow/musicmerge/ui/work/MyWorkPublishFragment.java

@@ -13,6 +13,7 @@ import com.cooleshow.musicmerge.bean.MyWorkListBean;
 import com.cooleshow.musicmerge.contract.MyWorkContract;
 import com.cooleshow.musicmerge.databinding.FgMyWorkPublishLayoutBinding;
 import com.cooleshow.musicmerge.presenter.work.MyWorkPresenter;
+import com.scwang.smart.refresh.footer.ClassicsFooter;
 import com.scwang.smart.refresh.layout.api.RefreshLayout;
 import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
 
@@ -46,6 +47,7 @@ public class MyWorkPublishFragment extends BaseMVPFragment<FgMyWorkPublishLayout
     @Override
     protected void initData() {
         mListAdapter = new MyWorkListAdapter();
+        mViewBinding.refreshLayout.setRefreshFooter(new ClassicsFooter(getContext()));
         EmptyViewLayout emptyViewLayout = new EmptyViewLayout(getContext());
         emptyViewLayout.setContent(com.cooleshow.base.R.drawable.icon_empty_content, "暂无内容");
         mListAdapter.setEmptyView(emptyViewLayout);

+ 1 - 0
musicMerge/src/main/res/layout/fg_my_work_publish_layout.xml

@@ -8,6 +8,7 @@
         android:id="@+id/refreshLayout"
         android:layout_width="match_parent"
         android:layout_height="0dp"
+        app:srlEnableRefresh="true"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintTop_toTopOf="parent"
         app:srlEnableLoadMore="true">