public ScreenLocation getNextLocation(short position, short setNewAnchor)
    {
        if (position == ScreenConstants.ADD_VIEW_BUFFER)
            position = ScreenConstants.ADD_SCREEN_VIEW_BUFFER;
        if (position == ScreenConstants.FIRST_LOCATION)
            position = ScreenConstants.FIRST_INPUT_LOCATION;
        return super.getNextLocation(position, setNewAnchor);
    }
public ScreenLocation getNextLocation ( short position , short setNewAnchor ) { if ( position == ScreenConstants . ADD_VIEW_BUFFER ) position = ScreenConstants . ADD_SCREEN_VIEW_BUFFER ; if ( position == ScreenConstants . FIRST_LOCATION ) position = ScreenConstants . FIRST_INPUT_LOCATION ; return super . getNextLocation ( position , setNewAnchor ) ; }
Code this position and Anchor to add it to the LayoutManager.
@param position The location constant (see ScreenConstants).
@param setNewAnchor The anchor constant.
@return The new screen location object.