Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

A best practice for Chatting Scroll View ?

$
0
0

Hi, I am building one app that has chatting function. I would like to build a Scroll View to show conversation between two people like Facebook Messenger. It has Chat Text, Pictures, and Date Time on each bubble chat. I am now using some views with layout (label, Image View ) to add on Scroll View for each Chat Text. But the problem, here is when I add views to ScrollView, the app is very slow. For adding 19 Chat Text (with 2 pictures) it takes 5-10s to add them. Can any one have a better idea to practice this type of problem? My app getting data from webserver to take json object like this: [ {SenderID:"xxxxxx", {SendAt:"2014-06-11T14:00:10",Text:"This is a test",image:"abcd.jpg"}, {SenderID:"xxxxxx", {SendAt:"2014-06-11T14:02:10",Text:"This is a test2",image:"abcd1.jpg"}, {SenderID:"xxxxxx", {SendAt:"2014-06-11T14:03:10",Text:"This is a test3",image:"abcd2.jpg"} ]

I would appreciate your help.


Viewing all articles
Browse latest Browse all 8068


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>