如何在android中隐藏光标的特定行
我有一个光标,它有 40 行,我想在用户选中复选框时隐藏一些行。
一种方法是在游标上再次运行查询,但这对我没有帮助,因为条件是由Java完成的(计算余额,有很多逻辑)。
我需要一些东西来获取当前行,并返回它是否可以显示。
任何帮助将不胜感激。
I have a cursor, and it got, lets say, 40 rows, I want to hide some rows when the user check a checkbox.
one way is run the query again on the cursor, but it doesn't help me because the condition is done by Java (calculate balance, with many logic).
I need something that will get the current row, and return if it can be show or not.
any help will be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我继承了 CursorWrapper 并重写了一些方法,这里是代码:
感谢任何试图提供帮助的人!
i inherit CursorWrapper and override some of the methods, here is the code:
thanks for anyone that try to help!