【问题标题】:Select TextView with trackball使用轨迹球选择 TextView
【发布时间】:2010-05-10 20:42:03
【问题描述】:

我的布局中有不同的元素:按钮、RadioButtons、EditText、一个 ListView,我制作了一个可点击的 RelativeLayout 并开始一个新的意图。一切正常,只是我无法使用轨迹球选择该元素。有什么办法可以做到这一点?提前致谢。

【问题讨论】:

    标签: android trackball


    【解决方案1】:

    你有没有尝试过使用这些方法

    setNextFocusDown(int id);
    setNextFocusLeft(int id);
    setNextFocusRight(int id);
    setNextFocusUp(int id);
    

    http://developer.android.com/reference/android/view/View.html

    【讨论】:

    • 我没有带轨迹球的设备来测试这个,但我认为检测轨迹球滚动并使用上述方法可以解决问题,所以我会接受这个作为答案。跨度>
    猜你喜欢
    • 2011-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-13
    相关资源
    最近更新 更多