0
votes

I've a calendar widget, that is a TableView rotated -90 degrees, after set the TableView data, I add a View rotated 90 degrees the TableViewRows, and set to those Views the new height and width.

On 'scrollend' event, if this reach the TableView limits, at the end of the TableView I push another 20 rows to the end of the TableView data, and at the beginning I unshift 20 rows to the beginning of the TableView data.

This works perfectly on iOS, but on android there is a issue that I can't understand why: all the screen visible TableViewRows are fine (5), but when I scroll to the other TableViewRows it's children are hidden until a 'click' event on the TableView.

Test Project: test.cal.zip

JIRA Ticket: https://jira.appcelerator.org/browse/AC-631

  • Start of the TableView (with 20 rows):

Start of the View (with 20 rows)

  • Scrolled a little bit to see the next rows (starting on nº6):

Scrolled a little bit to see the next rows (starting on nº6)

  • After a click on TableView:

enter image description here

1
May I compliment you on this innovative use of transform to create a vertical TableView? Never thought of that. Awesome! I might do a blog post on that at the Appcelerator Blog.Fokke Zandbergen
I think that are some bugs on this, most of this caused by the rotate function, I had to add the content after the rotation, but it was my best approach of doing this in order do to that slider calendar, with a ScrollView it was a little bit slower and more difficult to add views at the beginning of a the ScrollView (I had to manage all children views with left position and use a lot of for loops)Ricardo Pereira

1 Answers

0
votes