Duplicate a view programmatically from an already existing view : <p>I was trying the following code and was getting an error because there is no such constructor defined.</p>

<p><code>View v = new View(findViewById(R.id.divider));</code></p>

<p>Is there any simple way to copy a view into another?</p>
