本文介绍了使“回收者视图"从底部显示行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了某种使 RecyclerView 从下到上显示 ViewHolders 的方法.现在,我在任何地方都找不到它(半小时后,通过 RecyclerView RecyclerAdapter LayoutManager ...).

I saw somewhere method to make RecyclerView show ViewHolders from bottom to top. Now, i can't find it anywhere (after half of hour going through RecyclerView, RecyclerAdapter, LayoutManager...).

推荐答案

正在寻找 LinearLayoutManager.setStackFromEnd(true)吗?

修改

找出 LinearLayoutManager.setReverseLayout(true)可以解决问题.无论哪种方式,读者都可能想尝试每种方法以及两者的组合以获得所需的效果.

Turns out LinearLayoutManager.setReverseLayout(true) does the trick. Either way, the reader may want to try each of the methods and the combination of both to get the needed effect.

这篇关于使“回收者视图"从底部显示行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 10:39