提交 2b47525a authored 作者: lgd's avatar lgd

1.修改效果

上级 71d33dd4
......@@ -81,8 +81,8 @@ public class MainFragment extends WorkBaseFg {
RecyclerView rvApproval;
@BindView(R.id.rv_work)
RecyclerView rvWork;
@BindView(R.id.srl_refresh)
SmartRefreshLayout srlRefresh;
// @BindView(R.id.srl_refresh)
// SmartRefreshLayout srlRefresh;
List<BatLayoutVo> saleList = new ArrayList<>();
List<BatLayoutVo> storeList = new ArrayList<>();
List<BatLayoutVo> approvalList = new ArrayList<>();
......@@ -206,9 +206,9 @@ public class MainFragment extends WorkBaseFg {
@Override
protected void initEvent() {
srlRefresh.setOnRefreshListener(refreshLayout -> {
srlRefresh.finishRefresh();
});
// srlRefresh.setOnRefreshListener(refreshLayout -> {
// srlRefresh.finishRefresh();
// });
}
@Override
......
<?xml version="1.0" encoding="utf-8"?>
<com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/srl_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="25mm"
android:background="@color/white"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="25mm"
android:background="@color/white" />
<!--<View-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="25mm"-->
<!--android:background="@color/white" />-->
<LinearLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent">
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10mm"
android:orientation="vertical">
android:orientation="vertical"
app:layout_scrollFlags="scroll|snap|enterAlways">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
......@@ -101,6 +99,8 @@
<View style="@style/ViewX" />
</LinearLayout>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tl_tab"
android:layout_width="match_parent"
......@@ -114,10 +114,13 @@
app:tabSelectedTextColor="#FFFBD249"
app:tabTextColor="@color/flexible_text_sup" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.viewpager.widget.ViewPager
android:id="@+id/vp_data"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<LinearLayout
android:layout_width="match_parent"
......@@ -207,8 +210,6 @@
android:layout_height="wrap_content"
android:paddingHorizontal="20mm" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
\ No newline at end of file
</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论