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


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

  • B4A_CLV_Header.zip
    160.7 KB · Views: 1,240
  • B4i_CLV_Header.zip
    153.9 KB · Views: 659

Johan Hormaza

Well-Known Member
Licensed User
Longtime User
upload_2019-4-30_9-56-54.png
 

DonManfred

Expert
Licensed User
Longtime 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