I have created two XML files for portrait and landscape mode separately and kept them in folders layout and layout-land respectively.
Note: I have given android:launchMode = "singleTask" in manifest file for that activity for some reason.
Issue: In both portrait and landscape mode, it takes xml from layout folder. What is the reason for taking xml only from portrait layout folder? Is it because of the "single task property"?. What am I missing in this?
Thanks in advance.