I donβt know if it will work or not, but you will try it. First remove the visibility of your bottom view, assign onScrollEvent to your ScrollView, as shown
@Override protected void onScrollChanged(int l, int t, int oldl, int oldt) { View view = (View) getChildAt(getChildCount()-1); int diff = (view.getBottom()-(getHeight()+getScrollY()+view.getTop()));
this code will detect when the bottom scroll value is reached, when it reaches, makes your bottom visible. Otherwise, it is not displayed programmatically.
the same can be used for viewing from above
source share