Git Product home page Git Product logo

Comments (16)

youlookwhat avatar youlookwhat commented on May 31, 2024 1

已完善,和网易云音乐Android版一样,最后一行显示即加载,不必完全显示。

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024 1

明白你的意思了,我可以处理一下,这个改比较简单,就是不太清楚有这样需求的人有多少,是默认就这样的机制还是通过设置状态达到

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024 1

我现在想到的是,直接把ByRecyclerView里的onScrollStateChanged方法里if条件里的state == RecyclerView.SCROLL_STATE_IDLE去掉,你可以这样操作试试。
当然也有其他的方法

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024

很懂你的意思。当时处理的时候注意到了,因为空白区块是“加载更多布局”的一种空白状态,依据它是否完全显示 并且 手指释放,来判断执行加载更多。

Ios版本微信:
一直到最后一个item显示出来,再继续上拉,会出现“加载更多布局”的加载中状态,依据它出现过 并且 手指释放,来执行加载更多。

BRVAH:
最后一个item显示就会加载更多,不存在手指释放刷新或者要最后一个item完全显示的情况。

ByRecyclerView 这样处理加载更多逻辑有利有弊,利就是不见底不加载,弊就是你说的那种情况,不到底部或者到底部不释放手指会显示空白。

我觉得 Ios版本微信 的处理逻辑可以,你觉得呢,可以的话我更新一下,修正成这个逻辑。

from byrecyclerview.

bean-liu avatar bean-liu commented on May 31, 2024

这个问题好像还存在

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024

已确认如果数据超过一页,显示最后一行的一部分松手就可以加载。

如果还有问题可能是另外的问题,能描述下具体的现象是什么吗,比如没有超过一页? @bean-liu

from byrecyclerview.

bean-liu avatar bean-liu commented on May 31, 2024

已确认如果数据超过一页,显示最后一行的一部分松手就可以加载。

如果还有问题可能是另外的问题,能描述下具体的现象是什么吗,比如没有超过一页? @bean-liu

噢噢,我可能理解错这个主题了,我的理解是把空白状态改成默认为“显示加载更多”状态,这样就不会出现空白了,同时我也想请教如果我想让空白默认为加载更多要怎么做呢?

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024

空白和加载更多是不同的两个状态,你可以设置状态视图 setStateView(layout),然后layout样式是加载更多的样式,看能不能解决问题。

from byrecyclerview.

bean-liu avatar bean-liu commented on May 31, 2024

我现在的情况跟发帖的同学有点类似,拖动列表拉出底部会出现一条空白的,放手后会显示加载更多,我想的是要是拖出来就显示加载更多就好了 @youlookwhat

from byrecyclerview.

bean-liu avatar bean-liu commented on May 31, 2024

可否提示一下,我自己改下试试 @youlookwhat

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024

@bean-liu 你改了以后可以达到效果吗

from byrecyclerview.

bean-liu avatar bean-liu commented on May 31, 2024

这阵子都在加班赶工,等闲下来了我试下😂@youlookwhat

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024

恩恩 不急不急

from byrecyclerview.

bean-liu avatar bean-liu commented on May 31, 2024

我现在想到的是,直接把ByRecyclerView里的onScrollStateChanged方法里if条件里的state == RecyclerView.SCROLL_STATE_IDLE去掉,你可以这样操作试试。
当然也有其他的方法

试了下不行哦

from byrecyclerview.

youlookwhat avatar youlookwhat commented on May 31, 2024

可以看看能不能在,加载更多布局的SimpleViewHolder里处理。
我有时间了看看这个,或者你可以尝试处理下,这段时间公司有点忙,还没招到人,谅解下🥶

from byrecyclerview.

bean-liu avatar bean-liu commented on May 31, 2024

可以看看能不能在,加载更多布局的SimpleViewHolder里处理。
我有时间了看看这个,或者你可以尝试处理下,这段时间公司有点忙,还没招到人,谅解下🥶

没关系,我这边这个需求没有了,不用做了😂

from byrecyclerview.

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.