Quantcast
Viewing all articles
Browse latest Browse all 8068

How to evenly space ImageViews?

Is there an east way for me to have these three imageViews evenly spaced horizontally? I'm having a hard time figuring this out and my app is being deployed for multiple platforms so I was trying to avoid hard coding anything.

Here is my code

var toolBarView = Titanium.UI.createView({
    bottom:0,
    height:'50',
    width:Titanium.Platform.displayCaps.platformWidth,
    layout:'horizontal',
    //backgroundColor:'#777'
});
 
var buttonFacebook = Ti.UI.createImageView({
    image: '/HTML/images/facebook.png',
    top:'5'
});
var buttonTwitter = Ti.UI.createImageView({
    image: '/HTML/images/twitter.png',
    top:'5'
});
var buttonPintrest= Ti.UI.createImageView({
    image: '/HTML/images/pinterest.png',
    top:'5'
});

Viewing all articles
Browse latest Browse all 8068

Trending Articles