title: Android : How to programmatically set layout_constraintRight_toRightOf "parent"
body: <p>I have a view in ConstrainLayout as follows. </p>
  
  <pre><code>&lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:maxWidth="260dp"
          android:textColor="#FFF"
          android:textSize="16sp"
          app:layout_constraintLeft_toLeftOf="@+id/parent"
          app:layout_constraintTop_toBottomOf="@id/message_date"
          android:id="@+id/text_main"
          /&gt;
  </code></pre>
  
  <p>I would like to change the view to either <code>app:layout_constraintLeft_toLeftOf="@+id/parent"</code> or <code>layout_constraintLeft_toRightOf="@+id/parent"</code> programmatically in recycleViewHolder based on some conditions.</p>