Android 获取ScrollView中的可见区域

Android 获取ScrollView中的可见区域,android,scrollview,Android,Scrollview,我有一个滚动视图的线性布局,我添加了一组现在可以滚动的ImageButton。如何获取屏幕上的可见图像按钮集 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="250dp" android:scrollbars="none" android:id="@

我有一个滚动视图的线性布局,我添加了一组现在可以滚动的ImageButton。如何获取屏幕上的可见图像按钮集

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="250dp"
    android:scrollbars="none"
    android:id="@+id/scrollview">
    <LinearLayout
        android:id="@+id/layout"
        android:orientation="vertical"
        android:layout_height="250dp"        
        android:layout_width="match_parent">
    </LinearLayout>
</ScrollView>

这应该会有所帮助。这个链接很有用,我知道了-谢谢