title: How to place a java class in xml
body: <pre><code>    public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
  CoverFlow coverFlow = new CoverFlow(this);
  setContentView(coverFlow);
  }
  </code></pre>
  
  <p>This is my code, but now I want to place a layout in that same file.
  Any suggestions please....... </p>