Android Question chat view based on Webviews

peacemaker

Expert
Licensed User
Longtime User
HI, All

I'm trying to create the chat where each message post is in the Webview.
So HTML-formatted message with links, pictures ... can be supported.
I use the Ultimate ListView example, but i guess, CustomListView possible.

But the main trouble is that the height of each post is variable - the post height may be known only _after_ the message is loaded and rendered by a Webview.

So it needs the loop that calls a sub that should load the post message into the template Webview, Wait For _PageFinished, get the webview content height and adjust the message container (and Webview's) height accordingly.
How to do such loop fully synchronous, message by message, using async events of Webview ?
 
Last edited:
Top