Community Questions & Answers
HowTo move the Android TabBar to the bottom
Hiya, im currently developing my second cross-platform App with Titanium and i was intent to make both look as similar as possible...so i was wondering if its possible to move the Android-TabBar to the bottom of the my Titianium-Android-App. After a couple...
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.)
Bar with left aligned text |right aligned buttons
I try to create a Bar with a left aligned label and right aligned buttons. If possible, this should work if you add an explicit width (eg. 300 or '100%') or you add an implicit width (with left:10 / right:10) ~~~ | ...
In TextArea the text is aligned in the same direction, and some in another.
How to make the text TextArea one font, and another part of other or one of the text aligned to the left in one part of the right? P.S.: I use XML for add text in TextArea. ~~~ var name = data.getElementsByTagName("name").item(0).text; ~~~ Thanks!
Dynamically align an image at the bottom of the screen
I need to insert an image at the bottom of the screen. This image must always remain at the bottom dynamically on all devices. How can I do? I for now I wrote this code: ~~~ var footer = Ti.UI.createImageView({ image:...
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 ?
hintText in TextField with align center
~~~ var text_field = Ti.UI.createTextField({ textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER, hintText: 'Value', keyboardType: Ti.UI.KEYBOARD_EMAIL, returnKeyType: Ti.UI.RETURNKEY_DONE, clearOnEdit: true }); ~~~ When align is Ti.UI.TEXT_ALIGNMENT_CENTER does...
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 a text Justify
Hi, i want to align a text in label (justify property)...is it possible in Titanium ? Thanks
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 =...
Howto vertical-align a webview?
Hi, I tried out several kinds of html code (with complete html, head, body tags - without html tags and just div style tag, ....) but I can't get a webview to vertical-align:middle the contained text.... webview.html...
Vertical Alignment for a label not working on Android
Hi, Trying to achieve a label with vertical alignment so that the text is at the bottom. It's in a view container of say 50x50. Based off Tweetanium code. Android 2.2SDK, Ti Mobile 1.6 SDK, Mac OSX When I try the following (along with some text like...
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...
Horizontal alignment of text fields
Greetings, I'm pretty new to Appcelerator, so please bear with me. I'm trying to place a simple text field in the window: ~~~ var uname = Titanium.UI.createTextField({ color:'#336699', height:35, top:10, left:10, width:250, ...
Position text inside a label (Titanium Mobile)
Is there a way to control the vertical alignment of text inside a label, e.g. say your label is 300px in height, but you want the text to start at 20px from the top edge. Is there any way to control this? Thanks!
How to vertically align labels
Is there a way to vertically align labels? I understand that you can use `height: 'auto'` to make the height auto adjust to the size of the label. This would great except that I need the height of the label to be a certain value. So I figure I have to...
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...
align text vertically in a label
The title says it all, this should be easy but I can't seem to find any attribute that will place the text at the top of a 300px high label, it just sits right in the middle. Thanks!
Showing 1-24 of 24