Get visible area in ScrollView

I have a linear layout in ScrollView, I added an ImageButton set that can now be scrolled. How to get a set of visible ImageButton on the screen.

<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> 
+4
source share

Source: https://habr.com/ru/post/1403222/


All Articles