选择并使用设备轨迹球检查的Andr​​oid的ListView复选框 [英] Select and check the checkboxes in Android listview using device trackball

查看:206
本文介绍了选择并使用设备轨迹球检查的Andr​​oid的ListView复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用程序,我已经使用了一个列表视图,并在ListView中的每个元素都有两个复选框。现在的问题是,用户不能选择使用的装置轨迹球那些复选框。移动时选择与设备轨迹球的复选框,不要让用户选择驻留在列表视图元素的复选框之一,它强调整个元素。

In my Android application I have used a Listview and in each element in the listview have two checkboxes. The problem is, the user can not select those checkboxes using the device trackball. It highlights the entire element when move to select the checkbox with the device trackball and do not let the user to select one of the checkboxes that resides in an element in the list view.

如果触摸屏移动手指点击复选框是更多钞票。但我怎么能让它使用的设备轨迹球移动并单击所需的复选框来完成。

If touch screen moving the finger and click the checkbox is posible. But how can I Let it to be done using the device trackball to move and click the required checkbox.

如果有人能帮助我实现这个它是一个很大的帮助.....先谢谢了...!

If someone can help me to achieve this its a great help.....Thanks in Advance...!!!

编辑...
或者这是IMPOSIBLE这样做,带轨迹球工作?????

Edits... Or is this imposible to do so, to work with trackball?????

推荐答案

你叫 listView.setItemsCanFocus(真)

这篇关于选择并使用设备轨迹球检查的Andr​​oid的ListView复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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