Use OrderedLayout.setHorizontal(boolean) instead of deprecated ToolbarLayout.setVertical(boolean)