Community Questions & Answers

CSS problem in webview.

I have a problem with padding a text in a webview. The padding-right doesn't seem to work. Please see the code for the webview. Using SDK 3.0.0.GA on IOS 6.1. ~~~ var desc = ui.web({ html: "<html><head><meta name = 'viewport'...

Text Align Justify

Is Text align (justify) supported in Titanium? If not, what is the reason why justifying is not supported? I am using Titanium to develop an application for enterprise and the UI looks not so professional with only left, right, center alignments. Any...

Fetch scaledDensity on Android

Is there any way to fetch the [scaledDensity](http://developer.android.com/reference/android/util/DisplayMetrics.html#scaledDensity) value on Android devices from Titanium? I'm trying to create a pixelRatio that will scale text appropriately on all...

Some questions about styling labels

Hi guys, I have some question concerning styling labels. For instance, I have some text in my database file which is fetched and placed into a label. - Is it in any way possible to add a 'bold' or 'italic' style to a specific word inside my label? - Is...

Text takes ages to load

I have a simple label on screen that is incremented when the user presses a button. The number on the label takes ages to update if it is displaying a number that has not been displayed before, however if it is changing to a number that has been displayed...

Bold text in a label

is really crazy that I can not differentiate the text that I write from normal to bold .. and that to do so is to create a label in webview for every word that I want to differentiate. Can not be solved in another way? Thanks!

Reading text messages from a specific number

Hi, I am planning to extend one of my apps and I am trying to work out what is possible. Basically I have a device which you send a text message and it will send one back with some information but currently you have to got to the messaging app and copy and...

How to parse Text

Good morning community, my problem is that i can't parse my Text..following situation with an XML Snippet which is out of my control Here the XML Snippet : ~~~ <item> [129236] Description of the product </item> ~~~ Now i get the Line by...

display text length while typing

titanium mobile sdk 2.1 iphone sdk 5.1 Hi, I created a Label and wanted to show the number of characters as the user types. I can't see any events like `keyup` or `onchange` so am kind of stuck for now. thanks for your help.

Activity Indicator Text

Hi there, The iPhone simulator seems to work fine, however there is no text present on my activity indicator as per the below: ~~~ var actInd = Titanium.UI.createActivityIndicator({ bottom:50, height:55, ...

Dividing block text

Hi! So I'm trying to layout text on a page to simulate line-height. I've managed to do this just fine vertically aligning the labels. But is anyone aware of a function that will take a block of text, and work out how much to fit on one line? Lets take an...

Apostrophe treatment

Hi, I've got an app where I have some news feeds. If the title of the feed is something like: "Obama's days are numbered" It would print it out as: Obama&#39;s days are numbered. How do I get rid of the &#39;s ?? Its quite odd...

A simple Jss example?

Hi, Iam getting a parse error while trying to use jss. I have tried with Id,className for a simple font-color/size for a text.But i could not make it work even after trying out as kitchen sink. pls help me out with a clear simple example for jss.

Changing the color of the table text

How to change color of the table text? I tried like this: ~~~ var tbl_data = [ {title:'MenuItem1'}, {title:'MenuItem2'}, {title:'MenuItem3'}, {title:'MenuItem4'}, {title:'MenuItem5'} ]; var table = Titanium.UI.createTableView({ ...

Possible solution for blurry text

It annoys me when my labels or buttons are blurry. Here are a few things you should check if you are having the problem: - Make sure the width/height are even numbers. Seems like Titanium tries to scale the text and it causes a blur. - You should...

Blurry text fix?

Hi there, While width:"auto" is a great way of getting a label to center the text, it also introduce a new bug, blurry text. I figured out that if the label is placed on a float number due to the automatic calc of width:"auto" than...

Copy formatted text to Clipboard

Hey Guys, Say i have 3 or 4 text input boxs or labels. How would i copy these values into the clipboard all together so its formatted as such "Textline1" "Textline2" "Textline3" *blankline* "Textline4" Would...

Showing 1-50 of 158 1 2 3 4