I have a ScrollView, and it's working, I'm able to get to the bottom and back to the top. The problem is that when the user remove the finger from the screen, the scrolling stops immediately . It was supposed to be smoother and not tiring to get to the bottom. Can anyone help me?
Here's my code:
XML:
<ScrollView
android:id="@+id/home_content_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@color/color_background_default"
android:fadingEdgeLength="@dimen/app_fading_edge_length" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/color_background_default"
android:orientation="vertical"
android:padding="@dimen/app_content_padding" >
<!-- Lots of different components here -->
</LinearLayout>
</ScrollView>
I tryed to do
scrollView.setSmoothScrollingEnabled(true);
but that didn't work either.
Another thing, I show some content that are fetched asynchronously after the main content of the scrollView is rendered. Some of them are images and may affect the total height of the scroll... Thinking about that I did
scrollView.refreshDrawableState();
scrollView.requestLayout();
That did not work at all...