摘要: public class UpPullRecyclerViewOnScrollListener extends RecyclerView.OnScrollListener { //监听回调 private UpPullOnScrollListener listener; public UpPullR 阅读全文
posted @ 2019-08-04 18:32 李艳艳665 阅读(628) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends AppCompatActivity{ RecyclerView mRecyclerView; RecyclerAdapter mAdapter; @Override protected void onCreate(Bundle sa 阅读全文
posted @ 2019-08-04 18:32 李艳艳665 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 我们可以通过onScrollStateChanged中的第1个参数RecycleView对象,拿到其布局管理类LayoutManager。我们看一下这个管理类的源码提供的方法,如下: //最后一个可见item public int findLastCompletelyVisibleItemPosit 阅读全文
posted @ 2019-08-04 18:31 李艳艳665 阅读(219) 评论(0) 推荐(0) 编辑
摘要: public abstract static class OnScrollListener { /** * Callback method to be invoked when RecyclerView's scroll state changes. * * @param recyclerView 阅读全文
posted @ 2019-08-04 18:29 李艳艳665 阅读(227) 评论(0) 推荐(0) 编辑
摘要: /** * Set a listener that will be notified of any changes in scroll state or position. * * @param listener Listener to set or null to clear * * @depre 阅读全文
posted @ 2019-08-04 18:29 李艳艳665 阅读(2666) 评论(0) 推荐(0) 编辑
摘要: package com.example.administrator.mktproject.weight import android.animation.Animatorimport android.animation.AnimatorListenerAdapterimport android.an 阅读全文
posted @ 2019-08-04 18:27 李艳艳665 阅读(125) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com 阅读全文
posted @ 2019-08-04 18:27 李艳艳665 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 需要将所有support包中的design模块移除 implementation('com.android.support:appcompat-v7:27.1.0', { exclude group: 'com.android.support', module: 'design'})implemen 阅读全文
posted @ 2019-08-04 18:26 李艳艳665 阅读(1557) 评论(0) 推荐(0) 编辑
摘要: package com.example.administrator.mktproject import android.os.Buildimport android.support.v7.app.AppCompatActivityimport android.os.Bundleimport andr 阅读全文
posted @ 2019-08-04 18:26 李艳艳665 阅读(238) 评论(0) 推荐(0) 编辑
摘要: project.afterEvaluate { project.android.applicationVariants.all { variant -> tasks.create(name: "showDependencies${variant.name.capitalize(http://www. 阅读全文
posted @ 2019-08-04 18:26 李艳艳665 阅读(260) 评论(0) 推荐(0) 编辑