Android Question How to disable fade-out effect on customlistview ?

palmzac

Active Member
Licensed User
Longtime User
Hi,

I don't want any display effect on customlistview after item created. ( like left-to-right fade-out effect ) Can I disable it ? Thanks !
 

palmzac

Active Member
Licensed User
Longtime User
Hi Erel,

I already did. But, It didn't work correctly.

B4X:
Private Sub CreateItem(Width As Int, i As Int, content As String ) As Panel

    Dim p As B4XView = xui.CreatePanel("")

    Dim height As Int = 20dip
    If GetDeviceLayoutValues.ApproximateScreenSize < 4.5 Then height = 30dip
    p.SetLayoutAnimated(0, 0, 0, Width, height)
    p.LoadLayout("ci00")

    Return p

End Sub
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
In the Designer set the Animation property of layout 'ci00' to 0 ... and remove your code lines for SetLayoutAnimated
 
Upvote 0

palmzac

Active Member
Licensed User
Longtime User
Hi Mangojack,

Thank for you help ! You are my angel.

The solution is that I only set the Animation property of layout 'ci00' to 0 in Designer.


In the Designer set the Animation property of layout 'ci00' to 0 ... and remove your code lines for SetLayoutAnimated
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…