简体   繁体   English

(Android)如何禁用滚动嵌套Recyclerview的某些元素

[英](Android) How to disable scrolling of certain elements of nested recyclerview

With this link you can navigate to the image of my recyclerview . 通过此链接,您可以导航到我的recyclerview的图像 Here I have vertical recyclerview inside horizontal recyclerview. 在这里,我在水平recyclerview里面有垂直recyclerview。 The horizontal scrolling works fine because I have used LinearSnapHelper. 因为我使用了LinearSnapHelper,所以水平滚动效果很好。 So everytime I scroll horizontally, one of the displays of date and hours is positioned in the center. 因此,每次我水平滚动时,日期和小时显示之一都位于中间。 The problem is that I want to disable the vertical scrolling of 2 recyclerviews of the image which are on the edges, so the only central recyclerview can be scrolled vertically at that moment. 问题是我想禁用边缘上图像的2个recyclerview的垂直滚动,因此此时唯一的中央recyclerview可以垂直滚动。

Looking forward to suggestions! 期待建议! Thanks in advance! 提前致谢!

I would like to help you with your problem 我想为您解决问题

Could you please submit code snippets of your main activity, main XML file, and the activity that this layout is put in? 您能否提交主要活动,主要XML文件以及此布局所放置的活动的代码段?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM