title: Serialize Android view to xml layout
body: <p>It's quite easy to create view from xml layout </p>
  
  <pre><code>setContentView(R.layout.main);
  </code></pre>
  
  <p>But the question is how to save content view to xml layout?
  So i can take a snapshot of my UI when app is running</p>