title: Add a view programmatically in ConstraintLayout
body: <p>I try to add a View at the same place of an other View in a ConstraintLayout but the added View don't get the LayoutParams of the other View.</p>
  
  <p>The added View take place on the top|left of the container.</p>
  
  <p>This is my code :</p>
  
  <pre><code>TextView cloneView = new TextView(getContext());
  cloneView.setLayoutParams(otherView.getLayoutParams());
  mainContainer.addView(cloneView);
  </code></pre>