Android Question How to disable animation on UltimateListView scrolling ?

Caps64

Member
Is there any way to disable the default items animation on UltimateListView scrolling ?
The ULV is placed on the main layout and this is my initialization code:
B4X:
Sub Globals
    Private PlayListView As UltimateListView
    ...
End Sub

Sub Activity_Create(FirstTime As Boolean)
    ...
    Dim cd As ColorDrawable
    cd.Initialize(Colors.DarkGray, 4dip)
    PlayListView.PressedDrawable=cd
    PlayListView.DividerDrawable=cd
    PlayListView.DividerHeight=2
    PlayListView.SelectionMode=PlayListView.SELECTION_SINGLE
    PlayListView.SelectWithClick=True
    PlayListView.FastScroller(True)
    PlayListView.AddLayout("PLAYOUT", "Item_LayoutCreator", "Item_ContentFiller", 50dip, True)
    ...
End Sub
I have two problems: I cannot get the FastScroller mode working, and the scrolling is slowed down significantly by the default animation of the scrolled items, despite I put in the manifest also the suggest hardware acceleration.
B4X:
SetApplicationAttribute(android:hardwareAccelerated, "true")
Thank you for the help you can give me.
 

Caps64

Member
Thank yor for your answer. Unfortunately, in my project the AnimationDuration of the layout does not affect the animation of the items when the ULV is scrolling.
 
Upvote 0
Top