Alternative to Manager.firstFocus(int)

Manager#firstFocus(int direction) is undocumented and does not function on all OS platforms (like 5.0.0). Instead you can override Field#onFocus(int direction) and call Fields#firstFocus(Field field).

protected void onFocus( int direction ) {

    super.onFocus( direction );

    Fields.firstFocus( getInputBoxField() );
}

For further control you can use the direction variable to determine if you are scrolling up (positive) or down (negative).

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© 2011 Metova, Inc.