Android文件分组AndroidStudio插件:Android File Grouping Plugin

7n5e 9年前

Android File Grouping Plugin

Android文件分组AndroidStudio插件:Android File Grouping Plugin这个开源的插件在Android开发中非常有用。它能够在项目结构视图中将文件分组展示在不同的文件夹中。
  • 它没有移动文件
  • 它没有创建新的文件夹.

分组前

   
  1. res/
  2. layout/
  3. chat_activity.xml
  4. chat_toolbar.xml
  5. chat_item.xml
  6. chat_share_view.xml
  7. home_activity.xml
  8. home_toolbar.xml
  9. home_fragment_sign_in.xml
  10. home_fragment_sign_up.xml

分组后

   
  1. res/
  2. layout/
  3. chat/
  4. chat_activity.xml
  5. chat_toolbar.xml
  6. chat_item.xml
  7. chat_share_view.xml
  8. home/
  9. home_activity.xml
  10. home_toolbar.xml
  11. home_fragment_sign_in.xml
  12. home_fragment_sign_up.xml

Naming rules: folder name -> file name part till underscore

Installation & Usage

Installation

  1. Download latest Android File Grouping zip file here
  2. Open Android Studio Settings, and select Plugins
  3. Click Install from disk and choose Android File Grouping.zip
  4. Restart IDE

Usage

  1. Rick click on layout folder (or any other)
  2. In context menu click Group/Ungroup

Limitations

Android文件分组AndroidStudio插件:Android File Grouping Plugin

The Android project view defines its own structure and does not allow modifying the structure through any extensions. Make sure you are in Project structure view, NOT in Android.



项目主页:http://www.open-open.com/lib/view/home/1437795068740