i wanna put multiple imageview in a row like this
but there is some bugs, the imageview are overlap on top of each other, i want to place them side by side with each other
Below is my XML file
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/background"
android:clipChildren="false"
android:clipToPadding="false"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="182dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:scaleType="centerCrop"
android:src="@drawable/music_720p" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/imageView1"
android:layout_toEndOf="@+id/imageView1"
android:layout_marginTop="182dp"
android:layout_marginRight="70dp"
android:layout_marginEnd="70dp"
android:scaleType="centerCrop"
android:src="@drawable/video_720p" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/imageView2"
android:layout_toEndOf="@+id/imageView2"
android:layout_marginTop="182dp"
android:layout_marginRight="70dp"
android:layout_marginEnd="70dp"
android:scaleType="centerCrop"
android:src="@drawable/photo_720p" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/imageView3"
android:layout_toEndOf="@+id/imageView3"
android:layout_marginTop="182dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:scaleType="centerCrop"
android:src="@drawable/web_720p" />
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/imageView4"
android:layout_toEndOf="@+id/imageView4"
android:layout_marginTop="182dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:scaleType="centerCrop"
android:src="@drawable/setting_720p" />
</RelativeLayout>
Any help is appreciated.