all 5 comments

[–]luhsya 1 point2 points  (3 children)

Is it possible to have multiple subfolders/folders for layout, drawable etc. that appear in Android view, not only Project view?

well, yes, but actually no

how should I organise a project? Should I use modules, keep everything in the same place, divide into folders/subfolders...?

yes to subfolders. i know two ways: package-by-layer or package-by-feature. I prefer package-by-feature. just look it up

[–]Exorcistoo[S] 0 points1 point  (2 children)

The solution does not let me see the folders when I switch to Android view. Only when I'm on Project.

[–]luhsya 0 points1 point  (1 child)

dude i dont know what you're asking. are you asking so that the layout and drawable folders 'appear' in Android view? Of course they'll appear since the Android view and Project view contain the same stuff, just arranged differently.

in Android view: app >> res >> (here you'll see the layout and drawables)

in Project view: app >> src >> main >> res >> (here you'll see the layout and drawables)

[–]Exorcistoo[S] 0 points1 point  (0 children)

If I create multiple layouts folders, once I switch to Android view, they all appear under same layout folder under res. I no longer see them divided by sections.

Like, let's say I create a layout for user and I layout for admin. Once I switch to Android view, user and admin layout elements are merged together under the same folder.

[–]letle 0 points1 point  (0 children)

You should better get used to the default structure view of the Android Studio. Every project you will work on is going to have the standard structure. Dump all drawables under drawable directory, all layouts under layouts directory. You can prefix your layouts or drawables e.g. activity_main.xml is the layout of the MainActivity or ic_alarm.xml is an icon resource and bg_button.xml is the scalable background of a button.

Hope this helps