Please say me how to create a marquee in titanium for android
7 Answers
Accepted Answer
Hello Vijay,
Try this...
var win = Titanium.UI.createWindow({ title : 'Marquee', backgroundColor : '#fff' }); var view = Ti.UI.createView({ width : '100%', }); var label = Titanium.UI.createLabel({ left : 0, color : 'black', text : 'Marquee Testing' }); var left = true; var animation = Titanium.UI.createAnimation(); animation.duration = 1000; animation.left = 0; var animationHandler = function() { if (left) { animation.left = 190; left = false; } else { animation.left = 0; left = true; } label.animate(animation); }; animation.addEventListener('complete', animationHandler); label.animate(animation); view.add(label); win.add(view); win.open();
What did you try? Did you try at least?
I am try this code :
var win = Titanium.UI.createWindow({ title:'Marquee', backgroundColor:'white' });
var view = Ti.UI.createView({
top: 20,
width:"300",
height:"100",
backgroundImage:"inner.png"
});
var label = Titanium.UI.createLabel({
width:"auto",
height:"auto",
color:'red',
left:0,
text:'This is SetuBridge...'
});
var animation = Titanium.UI.createAnimation({
//left:100,//left side 0
right : 0,
duration:1000,
autoreverse:true,
});
animation.addEventListener('complete',function()
{
label.animate(animation);
});
label.animate(animation);
view.add(label);
win.add(view);
win.open();
In titanium label having an html property you use it
No.
How to create option Button, Radio Button and drop down list view. have you any example in titanium. eg. option for checking Male/Female drop down for select country,state etc...
give me demo apps of Radio Button , Drop Down in titanium...
Your Answer
Think you can help? Login to answer this question!