Utilisez un RelativeLayout et mettre le bouton-conteneur à l'intérieur. passer le récipient dans your_scrollview_activity.xml l'attribut suivant
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Button 1 (reft)" />
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Button 2 (right)"/>
</LinearLayout>
</RelativeLayout>
REMARQUE: Vous devez définir un écouteur dans votre activité pour obtenir la position actuelle ScrollViews/hauteur actuelle. Avec cette hauteur actuelle vous pouvez calculer "l'espace gauche" à la fin/fin du ScrollView. Si votre RelativeLayout atteint le fond ou s'il est proche du fond ET dans la zone visible, appelez votre animation.