Community Questions & Answers

ListView with auto height row

Hi, I can't figure out how to set the row height of new ListView to 'auto'. Due to dynamic content, I can not set a fix height. I have tried it with 'auto', Ti.UI.SIZE and Ti.UI.FILL as item property but nothing works. Even if I wrap an auto-sized view...

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

Webview: Auto height doesn't work

Hello I have a webview in my app with above that webview a label and an imageview. I made a mainView to hold the label, imageview and webview. Now when I put the webviews height on auto, i can't scroll (well i can scroll a little piece down, but it goes...

Get warning line

Hello, with transition to SDK 2.0 we are all getting tons of warnings about width and height auto sizing of views, labels ecc.. ~~~ .... [WARN] [object TiUILabel] has an auto height value of 0, meaning this view may not be visible. [WARN] [object...

Label padding

Hi guys I have a label with width: 'auto', height: 'auto', top: 10, left: 10, right: 10, bottom: 10 inside a table view with height: 'auto'. this has the desired effect of having a padding around the label however, for some text lengths the top and bottom...

Get height of Label

If I try to get the height of a label, which has no particular height definition, I get the values 0 or 'auto'. It doesn't matter if the height is unset or set to 'auto'. However this problem only apears on Android devices or the Android simulator, it...

auto height into another auto height view

Hello, I have a view with `height:'auto'`, containing other views, images and text, and the height increases and decreases correctly based on the content. This view in container into another main view with `height:'auto'` but this view is not resizing if...

Picker as keyboard with a tableview

Building on Dan Tamas' guide to using a slide up picker like a keyboard: http://cssgallery.info/making-a-combo-box-in-titanium-appcelerator-code-and-video I had the need to do something similar with a tableview similar to the way the calendar app handles...

auto scroll label

Hi, I don't know if there is a name for this in english: i'd like to have a label on one line; and if the text is too large, then the text scroll by itself....do you see what i mean? I thought the ellipsize property will help me..but no :( Here is my...

Android label height

Does someone knows why it doesn't work in Android to use the "auto" value for the height of a label? I was using that to measure the position of the next item, as the text was dynamic. Is there any other option to achieve this?

Padding on a view element

Is there a way to get padding (like CSS padding) on a view element? Say I want my view to be as long as my content, but it has a bgcolor. I don't want the text to hug the edges of the coloured box so I want to give it some padding. I need to use...

Table View Auto Height on iPad

Hi, if i copy the Table view Auto Height example (table_view_api_auto_height.js) from the kitchensink app to an iPad Project the textlabels inside the table rows do not render correct, in fact they renders to small as if the . After changing the...

Vertical Layouts

Hi, It's been fairly easy to understand and work with the Mobile API so far - good work. One problem I have now is vertical layouts. My basic layout is: - image of set height - text of variable height - text of variable height I've tried the...

Showing 1-50 of 55 1 2