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 :)

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...

\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.

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+

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 =...

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....

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,...

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...

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.

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...

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...

Showing 1-50 of 454 1 2 3 4 5 610