Switch layout direction dynamically with the changeLayout() and fitScreen() API methods
changeLayout()
fitScreen()