I excluded some layout folders in Android project via Project Structure -> Modules -> Sources -> Right-click+Exclude on some layout files. After this I reloaded the project, compiled it, but the content of excluded layout folders still appears in the running app.
For example, I excluded the folder layout-large-mdi, compiled the app, but the content from this folder still appears in the app, instead the content from /res/layout/ dir.
What am I doing wrong?
I’m not sure what that IDE features does for you, but I’m fairly certain it’s not intended to prevent the Android build process from including the files. For that, you’ll need to delete the directory or temporarily move it.