Commit 4d57560e authored by 小费同学阿's avatar 小费同学阿 💬 Committed by 杨秀秀

68649 【商户APP-Android】店员管理-底部应该不显示暂无数据,应该是~没有更多啦~

parent 2066cf95
......@@ -28,6 +28,7 @@ public class AssistantManagementActivity extends BaseActivity<ActivityAssistantM
super.initData();
// 获取适配器上下文
viewModel.adapter = new AssistantInformationAdapter(this, viewModel);
binding.refresh.setEnableFooterFollowWhenNoMoreData(true);
//把adapter set进去
binding.rvAssistantList.setAdapter(viewModel.adapter);
......@@ -45,9 +46,11 @@ public class AssistantManagementActivity extends BaseActivity<ActivityAssistantM
Log.d("这是为了看列表为空", "店员列表不为空");
/*模块隐藏*/
binding.llNoData.setVisibility(View.GONE);
binding.refresh.finishLoadMoreWithNoMoreData();
} else {
Log.d("这是为了看列表为空", "店员列表为空");
binding.llNoData.setVisibility(View.VISIBLE);
binding.refresh.closeHeaderOrFooter();
}
}
});
......
......@@ -105,38 +105,54 @@
android:layout_marginTop="120dp"
android:background="@color/bg_grey">
<!--店员列表recycleView-->
<LinearLayout
<com.scwang.smart.refresh.layout.SmartRefreshLayout
android:id="@+id/refresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
tools:ignore="MissingConstraints"
android:orientation="vertical">
<!-- LayoutManagers.linear(1,false) 竖向-->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_assistant_list"
android:background="@color/bg_grey">
<com.scwang.smart.refresh.header.BezierRadarHeader
android:layout_width="match_parent"
android:layout_marginBottom="20dp"
android:layout_marginTop="10dp"
android:layout_height="wrap_content"
binding:layoutManager="@{LayoutManagers.linear(1,false)}" />
<!--暂无数据-->
android:layout_height="wrap_content" />
<LinearLayout
android:layout_marginTop="140dp"
android:id="@+id/ll_no_data"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
tools:ignore="MissingConstraints"
android:orientation="vertical">
<!-- LayoutManagers.linear(1,false) 竖向-->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_assistant_list"
android:layout_width="match_parent"
android:layout_marginBottom="20dp"
android:layout_marginTop="10dp"
android:layout_height="wrap_content"
binding:layoutManager="@{LayoutManagers.linear(1,false)}" />
<!--暂无数据-->
<LinearLayout
android:layout_marginTop="140dp"
android:id="@+id/ll_no_data"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:layout_width="120dp"
android:layout_height="129dp"
android:src="@mipmap/zhanwei_img_wushuju" />
</LinearLayout>
</LinearLayout>
<ImageView
android:layout_width="120dp"
android:layout_height="129dp"
android:src="@mipmap/zhanwei_img_wushuju" />
<com.scwang.smart.refresh.footer.ClassicsFooter
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment