Android 简单图库焦点项目问题
我有一个画廊,用来显示一些 ImageView。我想知道图库中的哪张图像当前突出显示/聚焦。
到目前为止,setOnItemClickListener 仅在我实际单击图像时才会触发。如果我滚动浏览图像,新图像就会获得焦点。我想知道那是哪张图片。
我该怎么做?
I have a gallery that I use to display some ImageViews. I'd like to know which image in the gallery is currently highlighted/focused.
So far, setOnItemClickListener only fires if I actually click on the images. If I scroll through the images, a new image takes focus. I want to know which image that is.
How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
获取列表中的图片数量
自行获取图像(查看)
Get the images number in the list
Get the image (view) it self