如何在Android中选择微调器时停止滚动屏幕到顶部

Mit*_*ara 10 android scroll android-scrollview android-spinner

我在滚动视图中使用微调器,当我选择微调器时,滚动视图滚动到屏幕顶部.有没有办法阻止这个卷轴?

任何帮助表示赞赏.

谢谢.

Mit*_*ara 5

所有

对于上述问题,我在xml中为滚动视图设置了一个属性。

android:descendantFocusability =“ beforeDescendants”

它对我来说就像一种魅力。

我在这里找到了解决方案

ListView内的可聚焦EditText

/sf/answers/187605421/

谢谢大家的帮助。

  • 嗨,我也遇到了确切的问题,我在滚动视图中尝试过这种方法,但是没有运气:(。您能告诉您如何解决。我在ICS 4.0中进行尝试<ScrollView xmlns:android =“ http://schemas.android .com / apk / res / android“ android:layout_width =” match_parent“ android:descendantFocusability =” beforeDescendants“ android:layout_height =” match_parent“>。 (2认同)