Drawing a class diagram is a very troublesome thing. If there are tools to automatically generate class diagrams, then how good! A simple search, there really is. As (2.1) below a plugin code iris can be generated automatically.
1 Plug-in installation
Installation is simple, as below find plugin, search code iris, and then install, restart as a bit, it can be used.
2 use
Right-click the module, click Generate Graph, and in the left tab you can find the class diagram.
In the UML diagram, right-click to find the relevant section. You can also set filters to show the parts you care about. Filter conditions can be set according to conditions such as package name.
It is very convenient to use. Sometimes you may not see, there may be the following reasons:
--Select Show Hightlight, and the part you want to see is not labeled as hightlight, you need to select "Show All Classes" so that no matter whether the class is marked as Hightlight will be displayed
--Sometimes the card, to wait a little while, the picture will come out
A bit unaccustomed is that the UML diagram it draws is both solid and dashed. Dashed lines represent dependencies, solid lines represent associations, and in general there is a dependency relationship, so you don't have to draw a dashed line.
Automatically generate UML diagrams under Android Studio