如何在android中检测滚动视图是否可滚动?
如我们所知,滚动视图将滚动,如果子视图高度大于滚动视图高度…如果子视图高度小于或等于滚动视图高度,则滚动视图不可滚动。 有没有办法检测滚动视图是否可滚动如何在android中检测滚动视图是否可滚动?,android,scrollview,Android,Scrollview,如我们所知,滚动视图将滚动,如果子视图高度大于滚动视图高度…如果子视图高度小于或等于滚动视图高度,则滚动视图不可滚动。 有没有办法检测滚动视图是否可滚动 <com.customerfirst.utilities.LockableVerScroll android:id="@+id/horizontalScrollView1" android:layout_width="fill_parent" android:layo
<com.customerfirst.utilities.LockableVerScroll
android:id="@+id/horizontalScrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical" >
<LinearLayout
android:id="@+id/ll_questions"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:splitMotionEvents="false"
android:orientation="vertical"
>
</LinearLayout>
</com.customerfirst.utilities.LockableVerScroll>
需要帮助,请提前感谢 看看这个答案:获取我的滚动视图高度的可能副本返回0,我在创建整个滚动视图后调用了它。我不知道为什么它显示为0。可能是因为我已将滚动视图高度指定为填充父级吗?