SleepNot
SleepNot

Reputation: 3038

Force scrolling/bouncing edge effect HorizontalScrollView

I would like to allow my HorizontalScrollView to be scrollable even if it doesn't have enough items. If I have say like 5 images on my ScrollView it scrolls. But when I only have 3 it doesn't. Any ideas? Thanks.

Upvotes: 3

Views: 2387

Answers (1)

Nam Nguyen
Nam Nguyen

Reputation: 71

By my understand, would you like alway enable overScrollMode, in this case, just add android:overScrollMode="always" in your define scrollview xml:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:overScrollMode="always">

Upvotes: 2

Related Questions