更新时间:2022-12-18 22:16:04
我找到了一个可以用android studio生成类图的免费插件.它被称为 SimpleUML.
I found a free plugin that can generate class diagrams with android studio. It's called SimpleUML.
更新 Android Studio 2.2+:要安装插件,请按照以下答案中的步骤操作:https://***.com/a/36823007/1245894
Update Android Studio 2.2+: To install the plugin, follow steps in this answer: https://***.com/a/36823007/1245894
旧版 Android Studio在 Mac 上:转到 Android Studio
-> Preferences
-> Plugins
Older version of Android Studio
On Mac: go to Android Studio
-> Preferences
-> Plugins
在 Windows 上:转到 Android Studio
-> File
-> Settings
-> Plugins
On Windows: go to Android Studio
-> File
-> Settings
-> Plugins
点击 Browse repositories...
并搜索 SimpleUMLCE(CE的意思是Community Edition,这是android studio的基础).
Click on Browse repositories...
and search for SimpleUMLCE
(CE means Community Edition, this is what android studio is based on).
安装它,重新启动,然后你可以在包含你想要可视化的类的文件夹上右键单击,然后选择添加到simpleUML Diagram
.
Install it, restart, then you can do a right click on the folder containing the classes you want to visualize, and select Add to simpleUML Diagram
.
就是这样;你有你喜欢的从你的代码生成的类图!
That's it; you have you fancy class diagram generated from your code!