New CLVHeader class replaces this implementation: https://www.b4x.com/android/forum/t...ce-animated-header-to-xcustomlistview.105343/
This is a slightly modified version of xCustomListView. It adds a header. The header becomes shorter when the user scrolls down.
An event is raised, which allows you to adjust the header's layout based on the current height.
For example:
You can hide or show more views based on the height.
This is useful when you want to provide more options and still use all the available screen size for the content itself.
The animation should be smooth in release mode.
The modified xCustomListView class is identical in the two projects.
This is a slightly modified version of xCustomListView. It adds a header. The header becomes shorter when the user scrolls down.
An event is raised, which allows you to adjust the header's layout based on the current height.
For example:
B4X:
Sub CustomListView1_UpdateHeaderSize (Height As Int)
lblHeader.SetLayoutAnimated(0, 0, 0, pnlTop.Width, pnlTop.Height)
lblHeader.TextSize = 20 + 20 * (Height - CustomListView1.MinTop) / (CustomListView1.MaxTop - CustomListView1.MinTop)
End Sub
You can hide or show more views based on the height.
This is useful when you want to provide more options and still use all the available screen size for the content itself.
The animation should be smooth in release mode.
The modified xCustomListView class is identical in the two projects.
Attachments
Last edited: