'Can I hide certain files and folders in the Project Explorer of my Android studio?

There are many files or folders that should be included in the project for a specific case, such as when building, but are not editable by the user.

enter image description here

In the above image, everything except the src, res folder, and the app level gradle file and proguard are rarely edited by the user. (Even if you have to edit it, it will be hidden again afterwards)

I want to hide these items, but I do not want to use Android Explorer because I want to see different layers for each f folder.

Is there a way to see only the files and folders I want, without deleting the actual files, like the image below?

enter image description here enter image description here



Solution 1:[1]

Go to File -> Settings. Then under Editor section, select File Types.

There you can define ignore file types. Refer following screenshot.File Types section

For more details -- > https://intellij-support.jetbrains.com/hc/en-us/community/posts/205824519-Is-there-a-way-to-hide-non-project-files-from-project-file-browser

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tim Sylvester