Search code examples
androidtrackball

Select TextView with trackball


I have different elements in my layout: Buttons, RadioButtons, EditText, a ListView and I have made a RelativeLayout that is clickable and starts a new intent. Everything works ok except that I can't select that element with the trackball. Is there any way to achieve this? Thanks in advance.


Solution

  • have you tried to use the methods

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

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