Android Question Is there a way to make CustomListView.Add() smooth?

Kwame Twum

Active Member
Licensed User
Longtime User
Assuming cv is a CustomListView,
How can you control cv's .Add(panel,height,value) method to automatically push up the present items to display the incoming item?
I tried running
B4X:
cv.JumpToItem(cv.GetSize)
but the result is poor, as it adds the item below the screen's display, then pushes it up.
that looks very awkward.

Anyway to get this as smooth as possible?
Thank you.
 

Kwame Twum

Active Member
Licensed User
Longtime User
How exactly do you want it to appear?

I'm working on a chat screen, this is how I would like it:
let's assume the CustomListView has items all the way to the bottom end of the screen.

Proposed Apperance
• I type a post and hit send
• Items shift up
• New post/item appears right at the bottom readily available to view

Current Situation
• I type a post and hit send
• New post/item posts below the list (invisible)
• New post/item shifts up together with others above it and now becomes visible
 
Upvote 0
Top