You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your product is perfect, but I need customize more.
Ex: I want to write a page like facebook chatting. Each message contains a user image, user name, and hisl/her message. I try to do it by 2 ways, but all are impossible.
Use textArea.add() method:
textArea.addEventListener('buttonClicked',function(e){// fires when clicked on the send buttonvarview=Ti.UI.createView({...});varprofileImg=Ti.UI.createImageView({...});varprofileName=Ti.UI.createLabel({...});varcomment=Ti.UI.createLabel({...});view.add(profileImg);view.add(profileName);view.add(comment);textArea.add(view);});
The textField has transparent background, so I can see textArea content through textField. And textArea does not auto scroll to bottom when a new message's added.
Set transparent message, convert view to image
vartextArea=Ti.SMSView.createView({backgroundColor: '#dae1eb',// <--- Defaults to #dae1ebassets: 'assets',// <--- Defauls to nothing, smsview.bundle can be placed in the Resources dirsendColor: 'trasparent',// <--- Defaults to "Green"recieveColor: 'trasparent',// <--- Defaults to "White"});textArea.addEventListener('buttonClicked',function(e){// fires when clicked on the send buttonvarview=Ti.UI.createView({...});varprofileImg=Ti.UI.createImageView({...});varprofileName=Ti.UI.createLabel({...});varcomment=Ti.UI.createLabel({...});view.add(profileImg);view.add(profileName);view.add(comment);varimage=Ti.UI.createImageView({image : view.toImage()});textArea.sendMessage(image.toBlob());});
But there is only profile image showed with small size.
So is there a way to create a conversation like facebook chatting?
The text was updated successfully, but these errors were encountered:
@hungnd Thanks for writing. Unfortunately this is not available yet. I'm working on a rewrite of this module to make it more dynamic and performant. I'm plaining on releasing it at the end of the year.
Your product is perfect, but I need customize more.
Ex: I want to write a page like facebook chatting. Each message contains a user image, user name, and hisl/her message. I try to do it by 2 ways, but all are impossible.
The textField has transparent background, so I can see textArea content through textField. And textArea does not auto scroll to bottom when a new message's added.
But there is only profile image showed with small size.
So is there a way to create a conversation like facebook chatting?
The text was updated successfully, but these errors were encountered: