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

label text alignment for both android and Ios

$
0
0

HI , I have problem in my app. I'm trying to get the label text one after another. I have 2 labels and I'm trying achevie. once the 1st label text was completed , the second label text has to add after 1st label text. I wrote the code like this

var meMsg = Titanium.UI.createLabel({
                                text : "gdfgd dfhfgh gfdgdg fgdgd fgdg gdfgd dfhfgh gfdgdg fgdgd fgdg  tyryr fghfgh gdfgd dfhfgh gfdgdg fgdgd fgdg gdfgd dfhfgh gfdgdg fgdgd fgdg  tyryr fghfgh",
                                color : "#444444",
                                top : "5",
                                wordWrap : true,
                                height : Ti.UI.SIZE,
                                width : "100%",                         
                                textAlign : "left",
                                verticalAlign : Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,
 
                            });
 
                            var meDate = Titanium.UI.createLabel({
                                text : "Fri 6:20PM",
                                color : "#6B8EBF",
                                wordWrap : true,
                                height : Ti.UI.SIZE,
                                textAlign : "left",
 
                                top : meMsg.toImage().width,
 
                            });
can any one guide me please how to get that

Viewing all articles
Browse latest Browse all 8068

Trending Articles