TableView:隐藏在屏幕不可见的行上的内容(android) [英] TableView: content hidden on rows that are not screen visible (android)

查看:27
本文介绍了TableView:隐藏在屏幕不可见的行上的内容(android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个日历小部件,即旋转-90 度的 TableView,在设置 TableView 数据后,我添加了一个旋转 90 度的 TableViewRows,并将这些视图设置为新的高度和宽度.

在 'scrollend' 事件中,如果达到 TableView 限制,在 TableView 的末尾,我将另外 20 行推到 TableView 数据的末尾,并在开始时将 20 行移到 TableView 数据的开头.

这在 iOS 上运行良好,但在 android 上有一个问题,我不明白为什么:所有屏幕可见的 TableViewRows 都很好 (5),但是当我滚动到另一个 TableViewRows 时,它的子项被隐藏,直到 'TableView 上的 click' 事件.

测试项目:

  • 稍微滚动一下以查看下一行(从第 6 行开始):

  • 点击 TableView 后:

解决方案

这很可能是这个错误:https://jira.appcelerator.org/browse/TC-5862

你怎么看?

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):

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

  • After a click on TableView:

解决方案

This might well be this bug: https://jira.appcelerator.org/browse/TC-5862

What do you think?

这篇关于TableView:隐藏在屏幕不可见的行上的内容(android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆