首页
社区
课程
招聘
[原创]下拉刷新原码-源于高系统版拆分
2022-5-1 16:17 9072

[原创]下拉刷新原码-源于高系统版拆分

2022-5-1 16:17
9072

更多工具https://bbs.pediy.com/user-home-854079.htm
重要的说三遍
不需要gredle,不需要gredle,不需要gredle
目前大多开源项目由AS完成,下载后项目很多编译又不通过。
本项目下载就能使用,下载地址最底部
体积小(不过百K),无多余依赖,不用担心APK过大
看效果




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
主要代码
<com.widget.PullRefreshLayout
        android:id="@+id/swipeRefreshLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        toolpull:refreshType="material"
        toolpull:refreshMove="false"
        toolpull:refreshColors="@array/color_arr"
        >
        <ListView
            android:id="@+id/listView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>
 
    </com.widget.PullRefreshLayout>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
layout = (PullRefreshLayout) findViewById(R.id.swipeRefreshLayout);
//        layout.setRefreshing(true);
        layout.setDurations(400,400);//设置动画时长
        layout.setEndableMoveConter(false);//内容一起滑动
        layout.setOnRefreshListener(new PullRefreshLayout.OnRefreshListener() {
            @Override
            public void onRefresh(PullRefreshLayout view) {
                layout.postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        layout.setRefreshing(false);
                    }
                }, 1500);
            }
        });

[培训]二进制漏洞攻防(第3期);满10人开班;模糊测试与工具使用二次开发;网络协议漏洞挖掘;Linux内核漏洞挖掘与利用;AOSP漏洞挖掘与利用;代码审计。

最后于 2022-5-1 16:20 被富到流油^-^编辑 ,原因:
上传的附件:
收藏
点赞2
打赏
分享
最新回复 (3)
雪    币: 11
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
huangbof 2022-5-1 23:17
2
0
给你一坨
雪    币: 62
活跃值: (566)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
万里星河 2022-5-2 13:11
3
0
挺不错的
雪    币: 239
活跃值: (650)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
只是来打酱油 2022-5-16 10:13
4
0
收藏了,给你点个赞.
游客
登录 | 注册 方可回帖
返回