Community Questions & Answers

Align Center Property?

hello appcelerators is it possible to auto center align everything or do i have to code the value and with trial and error get it centered? i want to align all objects,(Text fields, labels, buttons all center align.)

imageView alignment

I created an imageView which can contain images with different format By default the horizontal alignment for imageView is center, how to set this alignment to right (or left) without set width oh this imageView ?

Add counter to TableViewRow

Hi there. I need to create custom table row with label, counter and right arrow (using hasChild property). Like on [this picture](http://steelrat.info/wp-content/uploads/ui_list_item_example.png). I tried to do this with following code: ~~~ var data =...

Custom font in button bug

Hi there, If I use a custom font inside a button, it will not vertical align to middle. But if I use a standard font it is in the middle ~~~ //custom - bug? var customBtn = Ti.UI.createButton({ title:"BUY", borderRadius: 3, borderWidth:...

2 image quesions: aligning and no showing

HI All, I have 2 image related questions which I have you can help me with: Is is it possible to center align an image, so that it's always in middle of the screen? So I have an image view ~~~ var myImageFlag = Titanium.UI.createImageView({ ...

Settings.app like layout

I want to create TableRows similar to the Settings.app, where there is a label in the left side and a value label in the right side aligned right. The problem is that I can't figure out how can I avoid overflowing of the two labels on eachother without...

Cant get label to be at the top...

I have some simple code, and no matter what I do, I cant get my label to be on the top (trying to align it to the image). Here is my simple code: ~~~ var win = Titanium.UI.currentWindow; var scrollView = Titanium.UI.createScrollView({ ...

Two Buttons Centred in a View

I would like to have two buttons centred and evenly spaced in a view using horizontal layout. I have tried setting the view to with 100% and the buttons with width 40% and then setting a left and right offset, but this does not seem to work. Closest I...

Align Text in TableViewRow

I like to align an label in a TableViewRow "top left 105px". I don't find anything in the Docs. ~~~ var row = Titanium.UI.createTableViewRow({className: 'class1', height:'160'}); var myview = Titanium.UI.createView({ }); var mytext =...

Display a list of tags

Hi, i'm trying to display a list of tags in an Android app. ~~~ var tag_list = Titanium.UI.createView({height:'auto',textAlign:'left',layout:'vertical',top:100,left:100,right:100}); my_win.add(tag_list); // code code code while (rows.isValidRow()){ ...

Label Text won't wrap

Greetings, I'm trying to get some text inside a label to wrap. Here is my code: ~~~ var win=Titanium.UI.currentWindow; var class_textfield={ color:'#336699', width:250, borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED }; var...

Button title + icon alignment

I'm looking at the Snapost code & like the look of the buttons for my initial menu of options. The app will be multi-language so the approach of using images with the text actually in the image isn't going to work for me. The I've scrubbed some of...

Showing 1-24 of 24