In Android Studio 3.x (and before) when I ran the Layout inspector, the view hierarchy was automatically captured and saved in a *.li
file. When I start the Layout Inspector in Android Studio 4.0, the view hierarchy is not saved anywhere.
Can I somehow export the view hierarchy from the new Layout Inspector to a file, so I am able to share it with others? For now I can say that I'm only able to open the *.li
files in AS 4.0, but not save it.
I found one solution for the above case. You need to type shift two times and then type legacy layout inspector. The old layout inspector will open and you can save its .li file.
I found it useful because I can do it in the Android Studio 4.0. I can use new feature from Android Studio 4.0 Layout Inspector as well can save .li file using the legacy layout inspector.