Grouping / structure of resource files in Android Studio



  • Good afternoon! As far as I'm concerned, catalogued resource files can only be grouped in the catalogue. assetsin the remaining resource catalogues, all files should be at one level. Is there any way to manage resources more easily?



  • The hierarchy of folders and files in the project android has a very specific structure and cannot change.

    Android Studio introduced a new tree display regime - Android (default) instead of regime Project IntelliJ IDEA, where some attempts have been made to group files in the tree of the project, instead of a bunch of folders: drawable-hdpi/draweble-xhdpi/ and so on, one folder drawable/ with files inside her species: image.png(hdpi)image.png(xhdpi) etc. Similar to other resource folders. Of course, it's just a view in a tree of the studio and the real structure of the project folder. To date, standard possibilities are over.

    There's a studio coat. https://plugins.jetbrains.com/plugin/7876-android-file-grouping which creates an additional virtual separation of files in the sub-pack project on the principle that, for example, the name of the file is: activity_main.xml - The flame transforms the performance so that it's in the file. layout/ Virtual folder. activity/and in it the main.xml file, respectively, all the files whose name begins on activity_ They'll be in the same virtual folder, starting on another line, for example, fragments. fragment/ etc. Of course, there is no change in the actual structure of the project catalogues.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2