Skip to main content

ListView doesn"t stop on finger up?



I have a listView which defined like this in xml:







<ListView

android:id="@android:id/list"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:layout_marginTop="150dp"

android:layout_x="4dp"

android:layout_y="183dp"

android:cacheColorHint="#00000000"

android:fadingEdge="vertical"

android:enabled="true" >

</ListView>







Everything's just fine, but in a strange way if user wants to scroll the list down to see other items and gets his finger up list turns back to top ? It's just not stopping where user scrolled... Why could it be happening? Thanks for help in advance...


Comments

  1. try this:

    <ListView
    android:id="@android:id/list"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_marginTop="150dp"
    android:cacheColorHint="#00000000"
    android:fadingEdge="vertical"
    android:enabled="true" >
    </ListView>

    ReplyDelete
  2. Maybe you shouldn't use match_parent for height.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?