I am trying to find a way to take a screenshot of a given XML file and generate a screenshot of it using the command line. I know there are ways to get a screenshot from Android app, as well as from IDE. I am trying to find a way to do the same from CLI.
Have been trying to read everywhere, but haven't found a way yet.