Community Questions & Answers
Label Text not wrapping 3.1
Hello: I've a problem with the text wrapping inside a label on Android. This code works fine in the v 3.0.2. ~~~ var labelDir = Ti.UI.createLabel({ top: '1%', left : '13%', right : '10%', height: '50%', color :...
Vertical text align in labels
How can i make my text in labels aligned at the top vertically because it seems like by default it is aligned middle. I saw there is a verticalAlign property but it was only for webmobile... Any help? thenks in advance :)
Creating a glossy type button to work in android and IOS
hi all i'm very new to tss i had done some coding to create a glossy buttons for my apps with reference to css3 glossy buttons but i got stuck how to add padding and shadows to my button plz help me out
Formatting strings from i18n
How do I format or stylise a string? I want to make it bold, but not the entire string. Just certain segments in the string; "Operating in one form or another since <b>1898</b>", but this markup method doesn't seem to work although...
label crossed
Hi, Is it possible to cross label ? (on android and iPhone). thanks
Picker example crash!
Hello everyone, I am testing the single picker and the multiple picker components through this code: ~~~ var win = Titanium.UI.createWindow({ backgroundColor:"#FFFFFF", exitOnClose:true }); var resultat =...
Using of customized font (not westeuropaen latin)in Ti.UI.Labels
Hi, in my project I'am using the font "TheSansBold". The ttf only contains glyphes for west europa (latin-1). To fixe it, I have modiefied the ttf with fonforge. Now I can use it for polish, hungarian or turkish texts. But. It worls only in...
Android SDK 3.1.0 problem with TableViews and Labels
Hello, this is my code. ~~~ var tableViewNot = Titanium.UI.createTableView({ data: [], backgroundColor:'transparent', maxRowHeight:'68dp', minRowHeight:'68dp', top:'80dp' }); function rellenaTablaProd(itemList){ dataNot = []; ...
Can't create a label of 1px height
I'm trying to emulate a border of 1px between some views and I'm using a label for that of 1px height with no contents and just a background color. The label however looks much thicker, at least 2 pixels thick instead of just 1 pixel,as you can see on the...
Performance hit when putting labels in ListView
Hello I'm currently testing out the new ListView, which appears to work much smoother than the TableView in a lot of cases. However, as I was testing I noticed that putting labels into the ListView quickly gave a performance hit on iPhone when having ~200...
Titanium.UI.Label - Unicode (UTF-8 Encoded) text nor wrapping.
I'm using titanium 3.1 sdk. I'm trying to add labels ( with text / html is filled with utf8 encoded characters stored in sql lite database) on a scrollview [or] tableviewrow. When i check the output the text is not wrapped correctly. The right edge is...
Ellipsize not working in android
Hi All, I have to use ellipsize property in android. I try with this on label : ~~~ ellipsize : true ~~~ but not working. Help me to short it out. Thanks in advance.
Displaying of customized fonts
Hi, in my project I want to show danish texts with customized fonts. Here is the font -- it contains all needed types:  In the source code: ~~~ var titlelabel =...
\n not working, get real height of 'auto'
I'm developing for blackberry and am using a very old sdk which is 1.7.0. The problem I'm facing now is that I have a label and two string thatI want to display. The second string will be a new line below the first. I've tried suing '\n' but it does;t...
fontWeight bold not working for Label
I am using following Font Attributes but it is not making any effect to make it bold ~~~ font:{fontSize:24,fontFamily:'Lucida Grande',fontWeight:'bold'}, ~~~ I don't get what wrong I am doing here.
adding long text to label in multiple line
Hi, I want to put a long text in label. Its about 15 lines. So what is the procedure to add this text to label in multiple line. ~~~ var label1 = Titanium.UI.createLabel({ top:100, color:'black', text:"adfafds fdskjfk dsfjklsdjfkldsjfkl kdjf...
Get label height when height property is auto
I'm trying to get the current height of a label. This label got the 'auto' height property when I create it. I need to get the new height after changing for a bigger font. The only property I can get is 'auto', there's no way I can get the height in...
Embed fonts on iOS?
Is there a way to embed a font (such as an OTF or EOT) in a resources folder and then use that font in labels and such? ----- SDK 1.7.2, OS 10.7.1, iOS 4+
Multiple repeat view optimization(backgroundImage)
There is many views as input can be touch, each one has a same backgroundImage, but the backgroundImage be loaded each times. How can i optimize? ~~~ // view <View id="redTable"> <Label class="boll red redbg"...
Alloy - Label not changing text
I have no idea what i'm doing wrong, perhaps it's that I'm trying to change it in the exports, but this works on other required views, just not this one? view - spinner.xml ~~~ <Alloy> <ImageView id="spinner"...
ellipsize of the Label doesn't work
sdk: 3.0.0 GA os: mac os platform: android 4.0 quite simple, the text is too long in the label, i want to add ellipsize at the end of the text, but it doesn't work. the text is truncated but the ellipsize is not added. ~~~ var title =...
Customized data with TableView + Row + Label or WebView?
I want to display data 500 list entires in my app. What is the best solution for this purpose? How a entry looks like:  I try two ways: 1. TableView + TableViewRow + Label /...
How do you change Label orientation?
I am using Titanium Alloy 3.0.2. I have a layout where the orientation of a few of the labels (these can be uneditable text fields) need to read from bottom to top. All other visual elements have standard orientation reading from left to right, so I am...
Dynamically displaying labels and values in rows of an undetermined number of item descriptive fields
Hi, I am working on an app that provides a lot of descriptive fields for an item. However, over time more descriptive fields will be added or changed so i do not want to hardcode anything to display because I would have to be changing things all the...
highlightedColor in selected TableViewRow gets stuck
See [my screencast](https://vimeo.com/63740196) for an example of what I mean. You see the problem about 20 seconds into the video. It seems to mostly happen when scrolling the tableview causes the selected row to go off screen. When you scroll to bring...
Is it possible to change App label once installed?
My boss wants to give the user an option to toggle between to app names. For example, let's say the default name is "Cool Kids App". My boss wants to give the user the option to change the display name of the app to "Chill Kids App". ...
How to underline labels?
Hi All, I was wondering what is the best way to underline a Label created by Titanium.UI.createLabel() Thanks, Ajay
Normal html inputs, labels,... with the last letter cut off
I have a desktop application that is built with HTML code and what is happening is that all word inside inputs, labels, paragraphs have the last letter cut off. For example if I put the number "1", I almost can't see that is the number one,...
Prevent label reposition y a tableviewrow
Hi people, I've this visual problem. The code I use is ~~~ row= Ti.UI.createTableViewRow(); view= Ti.UI.createView({layout:'horizontal'}); button= Ti.UI.createButton({image:'/iconos/info.png'}); label= Ti.UI.createLabel({text:<some...
Adding bullet points to labels
This is going to sound a stupid question, but how do you add bullet points into the text element of a label? Thanks
Label overflowing bottom of grouped tableview row
 Why is this happening? This tableview section is created in a loop and the label that is causing...
background selected color with label and tableviewrow
Hi all, i have a tableview row that contain a label. The tableiewRow contains a rightImage property ( a custom arrow that tells the user to be redirected to another window). I need this: When the user clicks on the row, all the row background will be...
label text
my webservice returns the value in html text as "<b>turn</b> to left, <b>move</b>straight" . Can i set this as the text of the label ??? will this work??? thanks
Underline text in labels ?
Hi, I need to underline a text in a label. The use case is a label saying « I accept the terms of use », « terms of use » being underlined to indicate that clicking will display the terms in an overlay window. Using <u></u> tags and the...
Custom Fonts in iOS Alloy.
I got trouble to set custom fonts in Alloy project specially in iOS platform for any other font other than default font. Android is running without any modification by same code. Using: ####Mac OS X 10.8.2 (12C3103), Titanium Studio build:...
Text in label is offset on Android
I'm placing a label that has text and a border using top, left, width and height properties. On both iOS and Android, the border shows up in the correct spot with the correct dimensions. On iOS, the text inside the label looks correctly positioned....
Apply ellipsis to a label (iPhone)
Is it possible to apply ellipsize or ellipsis to a label on the iPhone?
Output of data rows
Hi I have a question about how to style and output multiple several rows from local data. Here is my case. I have a datatable, where title is outputtet, when you click on it, it goes into that id, with all the info and data of that person. My question is,...
Hide labels while scrolling the scrollableview
Hi, i want to hide labels while scrolling the scrollable view .... The views array of scrollable view contains scroll views, parent views(UI.View) inside scrollviews, imageviews(UI.ImageView) inside parent views and then another view(UI.View) inside parent...
Change label text to variable string problem
Hi guys, I can't seem to find the problem in this piece of code which should work 100% fine, but it does not. So I want to change the text of a label *(label.setText())*, but it does not seem to be able to **read the string value of the...
Wrapping/cropping text in a multiline label on Android, is it possible?
Hello! Is it possible to get the same behaviour on Android as on iOS? I need a label to just render as much text as it can and at the end add '...''s if not everything is displayed. Now the Android label just cuts of the text and I get half a line at the...
Label inside a lebel
Hi, I am working in Titanium mobile. MI want to put a label inside a label without giving it position. i.e. I have a word # in my label's text I want to replace that # symbol with that label dynamically. Is it possible. Any help ??? Thanks in advance.
Alloy: setting fontSize with SP value for android
hi, I tried to set the fontSize with sp unit in .tss like so: ~~~ font:{ fontSize: 17sp } ~~~ and: ~~~ font:{ fontSize: '17sp' } ~~~ but both don't work. What's the proper way to set this? thanks!!
can't set Text to multiple labels at the same time - IOS 3.0.2
I've got two timers running and updating labels with their respective counts.. if I have the two running only one label gets updated but the count still goes up on both timers. Is there anything I can do to make it so both labels keep updating or is that...
TextField and other elements duplicates
Hi at all, i have a problem in all the applications i am developing. If i have a tableview, i click one of the rows and then another page opens, for example for the infos of an object like a race or anything else. in that page there is a textfield and some...
How to access data of child-elements of a TableViewRow
I add a label to each TableViewRow. Now I want to read the text-value of these labels. How can I do this?
'touchstart' how to prevent label fire touchstart event Android
Hi every body, How to prevent label fire touchstart event Android? I set property : touchEnabled: false. But It's is not working. SDK: 3.0 Device: Nexus7
dynamic positioning of labels
Hi, I am adding and removing labels from a imageView on the basis of their visibility ..... there visibility is stored in db with values 1(visibile), 0(invisble) .... The real question is if i have 5 labels and if i remove one of them from the middle...
Fetch single data from database and push to multiple labels?
Hi guys, is it in any way possible to fetch words from a single textfield from the database and push them to multiple separate labels? For instance, let's say I would enter these three words in to a single textfield in a database, separated with a...
Custom tableviewrow not show labels with the width property expressed as a percentage
I created custom tableviewrow with the lables, but I have a problem in displaying lables: when I try to express width property value as a percentage, none of them appear. This is a bug or something wrong? ~~~ var win = Ti.UI.createWindow({ layout :...