Community Questions & Answers

Custom row tableview

Hi, I have a table with custom row items that i dynamically generated from a loop (items are a checkbox and two labels). The sample code is below. Now I want to get access to an element or item on a particular row when ever the checkbox on that same...

ListView minimum row height

Hello, It appears there is no way to control the minimum height of a given ListItem (on Android). Currently we need to display some custom rows that display auxiliary information. These items are to be small and discreet. Supplying properties such as...

Calculating total tableView height

Similar questions to this have been asked but as far as I can tell this has never been answered. Here is the problem. I have a tableView inside a scrollView and would like my scrollView to be about 20px taller than my tableView. All of the rows in my...

Expand / Enlarge tableview row

I have a tableView with a bunch of rows that contain labels. When clicking on a row I'd like to expand it, ie. increase its height, to be able to view all of the view's labels. The problem I have is that the text flashes (disappears for ~0.5 seconds) when...

ListView complex layout

I have a tableview row that is rather complex, and in my striving toward a smoother experience I was wondering if this could be converted to a ListView. I keep taking a look but get completely confused when trying to convert. This is what I currently have...

Tableview row check

I've got an issue with the hasCheck parameter. Basicly i want to be able to check and uncheck a row with an eventlistener. The kitchensink had an example on how to check a specific row. My problem is the unchecking of the row, for some reason i cant get my...

Min Height

Hello, Titanium SDK version: 1.7.0.RC1 iPhone SDK version: 4.2 Is it possible to set a minimum height on a row? Like min-height in CSS? Thanks!

3,884 views
asked 3 years ago by James -
last activity 6 months ago

Click Event Propagation

When adding a view with buttons to a table row, is there anyway to stop the click event propagation so that it doesn't bubble up to the table row when I click a button. here's the example code below: ~~~ var row = Ti.UI.createTableViewRow({ ...

How to get row data

Hi everyone, I have a simple question. I have created rows and put that in table. ~~~ var data = []; // Here i have created the array. data.push(row); // here I have pushed rows in the data which means I have row's objects in the data. ~~~ Now my...

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

row view

how to control the width and height of the left image in the row view

Float label in a row.

Hi.. I'm trying to create a chat app. I'm using table to display the chat messages. I'd like to give alternate styles for chat of sender and receiver. I'd like to display the chat of sender in left and the receiver in right side of rows. Is there any...

TableView - "data" property

Hi all. I'm using Titanium 1.7.1, Android 2.2 (Samsung Galaxy Tab), Windows XP I've noticed that there is strange behavior of "TableView" data property. From Titanium documentation: > data | array | the data array of objects to be used for...

Button on a tableViewRow

Hi Everyone, I am creating a button and adding to a tableViewRow. I have many rows in my tableView. the button is invisible first which I did by making : ~~~ visible: false ~~~ When I click on a row the button should be visible. I am doing it as...

title's size of a row of table view

Hi every body i have a little issue which is the size of the title of a row of table view i want to make it more visible than the usual but i dn't know which property i have to choose (width, font,...) nd how edit it i try some exemples until the...

adding image to a row of tableview

Hi every body i'm trying to add an image to the row of my table view but that dn't work with me when i make backgroundimage the image appears but it's too large i tried to make it in the folders "ressources/android/images/res-long-land-hdpi" it...

Change row rightImage

Hello, Im creating dynamically a table with a contents of a json file, here is my code: ~~~ for (var i=0; i<jsonObj.waypoints.length; i++){ var row = Ti.UI.createTableViewRow({ color:'white', height:'60dp', rightImage:...

Problem with TableViewRow Height

Hi, I have a TableView with dynamic content, I added a label in the row with height:'auto' the problem is that I have many blank area between my rows ! I tried to change the label.height to Ti.UI.SIZE but no change, also a put Ti.UI.SIZE in the height...

Showing 1-50 of 288 1 2 3 4 5 6