Center horizontally group of elements inside the ConstraintLayout
Advertisements I have to place three components inside the constraint layout: image, and on the right of the image two textviews one above other. Both text views are centered along the image. They all together should be centered horizontally inside. There is my code : <com.google.android.material.card.MaterialCardView android:id="@+id/downloadPlan" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" android:layout_marginBottom="16dp" android:clickable="true" android:focusable="true"… Read More Center horizontally group of elements inside the ConstraintLayout