Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to add title of image to coverflow view

I see Coverflow View in iPhone is same as this: http://flic.kr/p/8JYtsU
It has an image, plus a label in the bottom of each image.

But Coverflow View of Titanium is like that: http://flic.kr/p/8JYun3
As you see, it only has image, not has label.

How can we add label to image in Coverflow View? Can anyone help me?

Thanks so much.

— asked October 14th 2010 by Triet BuiMinh
  • coverflow
  • coverflowview
0 Comments

3 Answers

  • CoverFlow doesn't have any labels, it's purpose is to display images.

    Just add your own label at the bottom.

    — answered October 14th 2010 by Marco Ferreira
    permalink
    0 Comments
  • you can try to create view, add image and label too it and then use view.toImage(); to create image for coverflow.

    — answered April 10th 2011 by Shakhruz Ashirov
    permalink
    0 Comments
  • Try this

    var win = Ti.UI.currentWindow;
    
    
    // array of titles of the every image
    var title = [];
    
    // array of images for the cover flow
    var imagesUrls =[];
    
    var Images = Titanium.UI.createCoverFlowView({
    
            images: imagesUrls,
            top: 0,
        });
    
    var Titles = Titanium.UI.createLabel({
    
            text:titles[0],
            top:180,
            textAlign:'center',
            font: {
                fontsize:50
            },
            color:'#ffffff'
    });
    
    win.add(Titles);
    
    Images.addEventListener('change', function(e) {
    
            Titles.text=titles[e.index]
    
        });
    
        win.add(videosImages);
    
    — answered August 15th 2011 by Ebrahim Sayed
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.