Code Monkey home page Code Monkey logo

Comments (7)

jkdevKK avatar jkdevKK commented on May 27, 2024 1

加载更多样式能自定义吗

from lrecyclerview.

jdsjlzx avatar jdsjlzx commented on May 27, 2024

设置下拉刷新样式:

mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader); //设置下拉刷新Progress的样式
mRecyclerView.setArrowImageView(R.drawable.iconfont_downgrey); //设置下拉刷新箭头
AVLoadingIndicatorView库有多少效果,LRecyclerView就支持多少下拉刷新效果,当然你也可以自定义下拉刷新效果。

progress的颜色与你的主题设置有关,也就是@color/colorAccent的定义。

自定义下拉效果可以参考源码实现,后续会出demo实现!

from lrecyclerview.

axkza avatar axkza commented on May 27, 2024

自定义头部刷新是参考ArrowRefreshHeader吗?然后修改后还得替换LRecyclerViewAdapte中的ArrowRefreshHeader是吧?

from lrecyclerview.

jdsjlzx avatar jdsjlzx commented on May 27, 2024

替换也可以,你也可以在本地app自定义,放在本地!具体效果我没有试过,如果你自定义好了,没有问题,可以发给我,我可以作为demo放到源码里面,帮助更多的人!

from lrecyclerview.

axkza avatar axkza commented on May 27, 2024

我最后只是修改了ArrowRefreshHeader,本地自定义还是不懂。

我发现下拉阻力有点大,我就在Lrecyclerview的case MotionEvent.ACTION_MOVE:方法里,修改成1.5倍感觉下拉会比较顺滑
mRefreshHeader.onMove((int)(deltaY / DRAG_RATE*1.5));

from lrecyclerview.

jdsjlzx avatar jdsjlzx commented on May 27, 2024

我试一下!

from lrecyclerview.

jdsjlzx avatar jdsjlzx commented on May 27, 2024

DRAG_RATE改为2了,到时候看看反馈效果!

from lrecyclerview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.