如何知道ListView的最后一项是专注于android?(How to know last item of ListView is focused in android?)
我有一个包含N no的列表视图。 的项目。 当用户向下滚动列表并到达最后一个时。 我想知道用户何时在列表的最后一行。 怎么知道这个? 我可以用
聚焦状态
方法,但不知道我怎么才能知道最后一行是集中的?
I have a listview which contains N no. of items. When user scroll down the list and reached to the last. I want to know when user is in the last row of the list. How to know this? I can use
onFocus
method, but don't know how can i come to know that last row is focused?
原文:https://stackoverflow.com/questions/5595488
更新时间:2023-09-09 17:09
最满意答案
对不起,我们目前不支持这样的事情,但我们计划在不久的将来!
Dropdown
和Typeahead
就在我们的组件列表中。 您可以按照以下讨论进行讨论: https : //github.com/palantir/blueprint/issues/118 。Sorry, we do not currently support such a thing, but we're planning to in the near future!
Dropdown
andTypeahead
are literally next on our components list. You can follow the discussion here: https://github.com/palantir/blueprint/issues/118.
相关问答
更多-
可编辑'选择'元素(Editable 'Select' element)[2022-09-17]
没有什么是不可能的。 下面是一个解决方案,只要