gpt4 book ai didi

navigate textview of gridview with arrows android(用箭头导航网格视图的文本视图)

转载 作者:bug小助手 更新时间:2023-10-27 20:58:56 24 4
gpt4 key购买 nike



I have an application that will be used on a large screen and operated only with an external keyboard. There is a gridview dynamically inflated according to a database and I have to scroll through its items with the arrows on the external keyboard and highlight the one that has the focus so that if the Enter key is pressed an alertdialog is displayed with the data of that item. I can show the alert with the data, but I don't know how to navigate the gridview with the arrows on an external keyboard.

我有一个应用程序,将在一个大屏幕上使用,并且只使用外部键盘操作。有一个根据数据库动态放大的网格视图,我必须使用外部键盘上的箭头滚动它的项目,并突出显示具有焦点的项目,以便如果按下Enter键,则会显示一个带有该项目数据的警报对话框。我可以显示带有数据的警报,但我不知道如何使用外部键盘上的箭头导航网格视图。


change the selection focus of each element of the gridview and show alert with data of the selected element when pressing ENTER

更改网格视图中每个元素的选择焦点,并在按Enter时使用所选元素的数据显示警报


更多回答

welcome , Plz read HOW TO ASK

欢迎光临,请阅读如何提问

Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.

请澄清您的具体问题或提供更多详细信息,以突出您的确切需求。按照目前的写法,很难准确地说出你在问什么。

I need to go through the recyclerview items and get the position in an alertdialog

我需要查看回收器查看项目并在警报对话框中获取位置

优秀答案推荐
更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com