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.

Answers


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">

Need Your Help

HashMap get method returns NullPointerException

java nullpointerexception hashmap minecraft bukkit

I have a problem in my plugin (Bukkit for Minecraft) that makes this function throw a NullPointerException on line 733 (I cut many parts, the lines are separated), on the .get() method of the HashMap

How to see m2e connectors installed?

eclipse maven installation m2e tycho

I have installed Tycho m2e connector as described here: http://codeandme.blogspot.ru/2012/12/tycho-build-1-building-plug-ins.html