Quantcast
Viewing all articles
Browse latest Browse all 28

Table row align switch

Right now I have text on the left of a table and a switch on the right. The text is aligned on the left and in the middle of the table (height wise) but the switch is on the bottom right.

var row4 = Ti.UI.createTableViewRow({
    height:'auto',
    selectionStyle:Ti.UI.iPhone.TableViewCellSelectionStyle.NONE
});
    var basicSwitchLabel = Titanium.UI.createLabel({
        text:'Enable Ticket Counter' ,
        color:'#999',
        font:{
            fontFamily:'Helvetica Neue',
            fontSize:15
        },
        top:10,
        left:10,
        width:150,
        height:'auto'
    });
 
    var basicSwitch = Titanium.UI.createSwitch({
        value:true,
        top:10,
        right:10,
        width:100,
        height:'auto'
    });

Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>