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 the row is enlarged.
According to tests and an answer in this post, using an animation is not possible. Instead, I've tried with:
if (myTableRow[e.index].expanded === true) { myTableRow[e.index].height = 42; myTableRow[e.index].expanded = false; tbl.updateRow(e.index, myTableRow[e.index]); myRowLabel[e.index].top = 5; } else { //alert(e); myTableRow[e.index].height = 100; myTableRow[e.index].expanded = true; tbl.updateRow(e.index, myTableRow[e.index]); myRowLabel[e.index].top = 5; }I've also tried wrapping the label in a view - which I then enlrage - and setting the row's height to Ti.UI.SIZE so that its height will change accordingly.
Neither works the way I want it to; the label's text is flashing/jumping.
Any thoughts on how to achieve what I want? I really appreciate your help.
- SDK: 3.1.3
- Platform: tested on iOS 7 only so far
- Device: iPhones 4S and the simulator.