I searched everywhere in the site and found no answer. So far I managed to keep important states of my App when orientation changes but now I want to have separate fragments for each orientation:
If (Portrait Mode) => attach fragment portrait to activity
if (Landscape Mode) => attach fragment landscape to activity
I don't want just two separate layouts, but two different fragments (this is because I want to add some functionality that's "impossible" to achieve in portrait mode). How can I achieve this?