Android RecyclerView: How to avoid scroll interruption(scroll twice) when scroll state is not IDLE? -
how avoid recyclerview being scrolled when scrollstate not idle ? i have tried ideas overriding canscrollhorizontally() in linearlayoutmanager , return false when scrollstate != idle or same concept applied dispatchtouchevent() in activity , stuck screen forever. i tried asyntask method while loop made never escape doinbackground , go onpostexercute: @override public void onscrollstatechanged(recyclerview recyclerview, int newstate) { super.onscrollstatechanged(recyclerview, newstate); if (previousscrollstate != 0) { new asynctask<void, void, boolean>() { @override protected boolean doinbackground(void... params) { while (previousscrollstate != 0) { log.i(tag, "doinbackground " + previousscrollstate); } return true; } @overr...