Advertisement
fahad005

ImageView sample

Oct 25th, 2021
1,443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.99 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <layout>
  4.     <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5.        xmlns:app="http://schemas.android.com/apk/res-auto"
  6.        xmlns:tools="http://schemas.android.com/tools"
  7.        android:layout_width="match_parent"
  8.        android:layout_height="match_parent"
  9.        android:orientation="vertical"
  10.        tools:context=".MainActivity">
  11.  
  12.         <ImageView
  13.            android:id="@+id/imageView"
  14.            android:layout_width="match_parent"
  15.            android:layout_height="wrap_content"
  16.            app:layout_constraintBottom_toBottomOf="parent"
  17.            app:layout_constraintLeft_toLeftOf="parent"
  18.            app:layout_constraintRight_toRightOf="parent"
  19.            app:layout_constraintTop_toTopOf="parent"
  20.            android:src="@drawable/images"
  21.            android:scaleType="fitXY"
  22.            />
  23.  
  24.     </androidx.constraintlayout.widget.ConstraintLayout>
  25. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement