73
Assume I have an activity with three different layouts in different resource folders. For example:
layout-land/my_act.xml
layout-xlarge/my_act.xml
layout-xlarge-land/my_act.xml
In different devices and different positions one of them is selected by Android.
How can I find out which one is selected programmatically?
Does Android have any API that returns these layouts to the program?
Edit: Graham Borland's solution has a problem in some situations that I mentioned in the comments.