skip to Main Content

Android Studio – How to align 2 image view in a row?

this is my xml code i want to set two images in row XML code <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="10dp" android:background="#ffffff" tools:context=".SplashActivity"> <ImageView android:layout_width="340dp" android:layout_height="340dp" android:layout_gravity="left" android:src="@drawable/ic_2" android:text="Hello World!" android:tint="#ff0000" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.498" tools:layout_editor_absoluteX="-52dp" />…

VIEW QUESTION
Back To Top
Search