I have HorizontalScrollView on left and right of that two ImageView are there.
on Extreme left scroll left image view should hide and on extreme right scroll Right side ImageView should hide. I there any event listner for HorizontalScrollView to detect whether there is no scope to scrll right or left.
Code of in xml as below
<HorizontalScrollView
android:id="@+id/HorrisontalScrollView"
android:fillViewport="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fadingEdge="none"
android:scrollbars="none"
android:layout_alignParentBottom="true"
>
//some images to be scroll
</HorizontalScrollView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/LeftArrrow"
android:background="@drawable/nav_arrow_left"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
></ImageView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/LeftArrrow"
android:layout_alignParentRight="true"
android:background="@drawable/nav_arrow_right"
android:layout_alignParentBottom="true"
></ImageView>