如何在Android Studio中将文件整理成组(文件夹)?例如,在主要的' java'文件夹,我想添加文件组,例如' models',' controller'等。
答案 0 :(得分:2)
可能最好的答案是here。要管理代码,文件夹结构以使代码清洁和可维护,this资源非常有用。您可以通过以下方式进行管理:
java
-Base package
--Model
--Controller
--Adapter
--Database
--Api
和
layout
-activity_
-fragment_
-adapter_
答案 1 :(得分:0)
For Organizing java files in to group I will suggest to you can create Folder under the src in that your package
right click on the java folder, click new - 'Package', then add your directory.
For more information in step by step Adding java folders Aslo refer this documentation enter link description here
I think this will be help to solving your problem.