I have two elements, a TextView and an ImageView. The ImageView will be at the end of the TextView. The TextView
TextView
ImageView
you can try this the key here is app:layout_constrainedWidth="true"
app:layout_constrainedWidth="true"