How to disable RecyclerView scrolling?

I cannot disable scrolling in the RecyclerView. I tried calling rv.setEnabled(false) but I can still scroll. How can I disable scrolling? 32 Answers 32 You should override the layoutManager of your recycleView for this. This way it will only disable scrolling, none of the other functionalities. You will still be able to handle click or … Read more

Smooth scroll to div id jQuery

I’ve been trying to get a scroll to div id jquery code to work correctly. Based on another stack overflow question i tried the following DEMO http://jsfiddle.net/kevinPHPkevin/8tLdq/ $(‘#myButton’).click(function() { $.scrollTo($(‘#myDiv’), 1000); }); But it didn’t work. It just snaps to the div. I also tried $(‘#myButton’).click(function(event) { event.preventDefault(); $.scrollTo($(‘#myDiv’), 1000); }); With no progress. 15 … Read more

Prevent BODY from scrolling when a modal is opened

I want my body to stop scrolling when using the mousewheel while the Modal (from http://twitter.github.com/bootstrap) on my website is opened. I’ve tried to call the piece of javascript below when the modal is opened but without success $(window).scroll(function() { return false; }); AND $(window).live(‘scroll’, function() { return false; }); Please note our website dropped … Read more

How to disable scrolling temporarily?

I’m using the scrollTo jQuery plugin and would like to know if it is somehow possible to temporarily disable scrolling on the window element through Javascript? The reason I’d like to disable scrolling is that when you scroll while scrollTo is animating, it gets really ugly 😉 Of course, I could do a $(“body”).css(“overflow”, “hidden”); … Read more