Skip to content
项目
Groups
代码片段
帮助
正在加载...
Sign in / Register
Toggle navigation
W
workoffice
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图表
统计图
Create a new issue
作业
提交
议题看板
Open sidebar
冷广德
workoffice
Commits
2b47525a
提交
2b47525a
authored
6月 23, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改效果
上级
71d33dd4
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
26 行删除
+27
-26
MainFragment.java
app/src/main/java/com/wd/workoffice/ui/fg/MainFragment.java
+5
-5
fg_home.xml
app/src/main/res/layout/fg_home.xml
+22
-21
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/fg/MainFragment.java
浏览文件 @
2b47525a
...
...
@@ -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
...
...
app/src/main/res/layout/fg_home.xml
浏览文件 @
2b47525a
<?xml version="1.0" encoding="utf-8"?>
<
com.scwang.smartrefresh.layout.SmartRefresh
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
androidx.coordinatorlayout.widget.Coordinator
Layout
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论