I have a fragment with a ScrollView. When there are more things to be shown I'd like to show something to the users (an arrow?) to let they know that they can scroll to see something more.
Is there a way to do it?
A scroll view contains a single direct child only. In order to place multiple views in the scroll view, one needs to make a view group(like LinearLayout) as a direct child and then we can define many views inside it.
ListView is a view group that creates a list of scrollable items. The list items are automatically inserted into the list using a list adapter.
NestedScrollView is just like ScrollView , but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Nested scrolling is enabled by default.
In the practical on scrolling views, you use ScrollView to scroll a View or ViewGroup . ScrollView is easy to use, but it's not recommended for long, scrollable lists. RecyclerView is a subclass of ViewGroup and is a more resource-efficient way to display scrollable lists.
You can make your scrollview' scrollbar visible all the time, instead of only if the user tries to scroll down/up.
You can do it by adding android:fadeScrollbars="false"
into your definition of your ScrollView XML
As far as I know, there's no out-of-the-box implementation for this. You could just have your ScrollView
inside a RelativeLayout
, and change visibility of an ImageView
(your arrow), which would be on top of ScrollView
, depending on wether or not the scroll has scrolled to the bottom.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With