title: Removing/Editing a constraint of a view inside a ConstraintLayout programmatically
body: <p>I have a view (<code>Linearlayout</code>) inside a <code>ConstraintLayout</code> with the following attributes:</p>
  
  <pre><code> android:id="@+id/myView"
   app:layout_constraintTop_toBottomOf="@+id/anotherView"
   app:layout_constraintLeft_toLeftOf="parent"
   app:layout_constraintRight_toRightOf="parent"
  </code></pre>
  
  <p>At some occasions I wish to align <code>myView</code> to the left, by simply removing the right constraint. however I'm not able to do so.<br>
  I tried to use the following, simply to copy and apply the constraint parameters:</p>
  
  <pre><code> ConstraintLayout.LayoutParams layoutParams = new ConstraintLayout.LayoutParams(holder.myView.getLayoutParams());
   holder.myView.setLayoutParams(layoutParams);
  </code></pre>
  
  <p>but the <code>layoutParams</code> always receives an empty parameters set,and sends the view to the top left corner. Perhaps it's because I'm using this inside of a <code>recyclerView</code>?</p>
  
  <p>How it looks inside the <code>recyclerView</code>:</p>
  
  <pre><code>public void onBindViewHolder(final RecyclerView.ViewHolder basicHolder, int position) {
  ProfileAdapter.UserInfoViewHolder holder = (ProfileAdapter.UserInfoViewHolder) basicHolder;
  ConstraintLayout.LayoutParams layoutParams = new ConstraintLayout.LayoutParams(holder.myView.getLayoutParams(‌​));
  holder.myView.setLayoutParams(layoutParams); 
  }
  </code></pre>