I have a simple input form; it\'s a vertical LinearLayout with EditTexts inside a ScrollView.
I have had such a problem too. The only way that helped me is to extend scroll view and to override neigher
@Override
public ArrayList getFocusables(int direction) {
return new ArrayList();
}
or
@Override
protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) {
return true;
}
but to override ViewGroup.requestChildFocus(View child, View focused)
method as following:
@Override
public void requestChildFocus(View child, View focused) {
// avoid scrolling to focused view
// super.requestChildFocus(child, focused);
}