boorujelly/app/src/main/res/layout/image_grid_item.xml

20 lines
804 B
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView
android:id="@+id/image"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintDimensionRatio="H,1:1"
android:contentDescription="Image"
android:scaleType="centerCrop"
android:src="@mipmap/ic_launcher_round" />
</androidx.constraintlayout.widget.ConstraintLayout>