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.
天!
我想禁用在galler选定项目中间的设置。我怎样才能做到这一点?
非常感谢您的帮助!
我自己找到了。如果您甚至需要在图库小部件中间禁用自动居中选定项目,则需要为图库添加下一个方法:
@Override public boolean onSingleTapUp(MotionEvent e) { setSelection(getSelectedItemPosition()); return true; }