Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何禁用用户对 Scrollview 的滚动?我想通过代码滚动它
要回答这个问题:
我做了一些研究,以下效果最好:
scroll.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { return true; } });
从我的工作代码中解析。