Adding margin to TextView in Constraint Layout using XML
Set width of TextView
to 0dp
<TextView
android:id="@+id/textView"
android:layout_width="0dp"
... />
Change
android:layout_width="wrap_content"
to
android:layout_width="match_parent"
// or
android:layout_width="0dp"
As TextView
's width .