Community Questions & Answers

Animate view height

Hi all. Is it possible to animate a view from height 0 to height Ti.UI.SIZE?? ~~~ someView.animate({ height:Ti.UI.SIZE, duration:1000 }); ~~~ When i try this, the window just is shown with any animation.

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

scrollView height 100% - 50px

Hi, i make a header with a height of 50px, and under this header i have to put a scrollView with the rest of the window height. How can i calculate this height? because i use Ti.Platform.displayCaps.platformHeight but this height includes the android...

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

how to get label size?

I need to get the size of a label, so that I can position it in relation to another label. The following code does not work: ~~~ label = Ti.UI.createLabel({ title: token + " ", font: {fontSize: 20}, width:'auto', height:...

imageView 100% width / auto width bug

For some reason, it looks like setting an imageView (with remote image) to 100% height and auto width is not working. I want the image to fill the height of the parent container. This container has deviceHeight, 100% of the screen. But I need the image to...

ListView's item height

Hi. How can I define ListView's item height? But I don't mean to define height of particular item: ~~~ { type: 'Ti.UI.Label', bindId: 'title', properties: { height: 50 } } ~~~ but to define height of that row (like to define table view row's...

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

Height of status Bar?

I would like to get the height of the status bar, however i cannot find out how to do it in code. I found the following answers, however i am not sure if that covers every possible...

Get TableView's height

I have a complex window with several views in it. I want to scroll the full page with all the views at once. I have a ScrollView attached to the Window, and a View with auto height in it. In this View are the other two Views and a TableView. I have exact...

Alloy - Navbar height is wrong

Hi, i am working on a iOS app using Alloy 0.3.6 and SDK 3.0.0. While design the app i realized that the navbar is not 44dp as it should, but 43dp. To verify this i created a new alloy project with the following...

iOS fix to calculate the label height

This is a quick fix for those of you who (like me) are tired of various complicated workarounds for label height calculation. Note that this fix is for iOS. - Navigate to iOS titanium SDK, mine is in `/Library/Application...

Dynamically changing the items on the screen

I am wanting to put change the size of a item such a pictureView or a textLabel etc depending on the size of the screen. I know i can use ~~~~ height: 100, width: 100, ~~~~ But i am wanting something more along the lines of ~~~~ height:...

iPhone 5 - App gets boxed

On the iPhone 5, my app is getting, if the right term is, "viewboxed". It centers itself with a height of 460 (excluding the status bar). My code is as follows: ~~~~ var tabGroup = Ti.UI.createTabGroup({ width: Ti.UI.FILL, height:...

Showing 1-50 of 196 1 2 3 4