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

1.修改效果

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