The method of directly generating UML class diagram under Android studio

As long as you download the relevant plug-in under Android Studio, you can directly generate UML class diagrams, saving a lot of drawing time.

settings->plugins, download code Iris

After the installation is complete, right-click on the module or class and select create graph. 

From the right menu bar, you can see the code iris option, and you can choose the view range below~

The uml diagram it draws has both solid and dashed lines. Dotted lines represent dependencies, and solid lines represent associations. Generally, if there is an association, there must be a dependency, so there is no need to draw a dotted line. I have no similar relationship between these classes.

But this effect didn't seem very satisfactory to me, so I started looking for another method.

simpleUMLCE - IntelliJ IDEA & Android Studio Plugin | Marketplace (jetbrains.com)

Download the plugin from the official website. Be careful to choose the one that suits your compiler.

② Follow the steps to import android studio from the plug-in on Disk

 An incompatibility problem has occurred.

My version doesn't match. I can't find it in the plugins, so it probably can't be solved.. The case has been solved. It turns out that it only adapts to IDEA.

Give up now? No! I tried the sketch it plugin again.

 Apply after the download is complete. Select sketch it in tools! generate uml diagrams!

Download another plugin as requested.

The generated file can now be parsed. What a beautiful uml diagram!

 

In fact, there are quite a lot of related plug-ins, you can try more. Pay attention to the original document, if you only adapt to IDEA, don't use it.

Guess you like

Origin blog.csdn.net/Sunnyztg/article/details/123609642