B4A Library [B4X] CLVHeader - Add a nice animated header to xCustomListView

Erel

Administrator
Staff member
Licensed User

This is a replacement to the modified CLV class (https://www.b4x.com/android/forum/t...tview-with-animated-header.84245/#post-659768).

The two attached projects demonstrate how to use it. Note that pnlTop is positioned above CLV (top position is the same).

You need to handle the ScrollChanged event and delegate it to CLVHeader:
B4X:
Sub CustomListView1_ScrollChanged (Offset As Int)
   CLVHeader1.ScrollChanged(Offset)
End Sub
Image source (Informatix example): https://www.b4x.com/android/forum/threads/header-with-parallax-effect-for-ulv.97820/

The class is included in the examples.
Depends on (j/i)XUI and xCustomListView libraries.
 

Attachments

DonManfred

Expert
Licensed User
I am using the same sample design
means you copied the bal file to your project and use it?

Create a NEW design adding the correct object in your app.

Away from that you should have created a new thread. we will fill this thread with not needed posts......
Don´t expect any more answer from me in this thread.
 
Top