1

I have a HorizontalScrollView wrapped around a TabLayout and works great, but it's hard for the use to know that it is actually a horizontal scroll.

How can I fade the end and maybe place an arrow at the end to give the user enough indication that it scrolls?

enter image description here

    <HorizontalScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="none"
        android:fillViewport="true">
        <android.support.design.widget.TabLayout
            android:id="@+id/tabs"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
    </HorizontalScrollView>
TruMan1
  • 33,665
  • 59
  • 184
  • 335
  • Does this answer your question? [making the edge of the scrollview fade when scrolling in android](https://stackoverflow.com/questions/11538873/making-the-edge-of-the-scrollview-fade-when-scrolling-in-android) – Omkar76 Nov 04 '20 at 17:10

4 Answers4

2

Hey i do not have proper idea for your question but here is a similar question . Check it out.

making the edge of the scrollview fade when scrolling in android

Community
  • 1
  • 1
2

This would make left and right edges have fading look:

<android.support.design.widget.TabLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:requiresFadingEdge="horizontal"
            android:fadingEdgeLength="80dp">
Sher Sanginov
  • 431
  • 5
  • 9
2

Just add in HorizontalScrollView

android:requiresFadingEdge="horizontal|vertical" 
android:fadingEdgeLength="10dp"
1

You can do this by overlaying a translucent ImageView, and only showing it when not fully scrolled over.

Buddy
  • 10,874
  • 5
  • 41
  • 58