Monday, 20 February 2017

Image View xaml code




    First copy the desired image then copy and paste the image in DRAWABLE folder then write the xml code


  1. <ImageView
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent"
  4. android:src="@drawable/l"
  5. android:scaleType="centerCrop"
  6. android:id="@+id/logo"
  7. />


in android:src in "l" place you can give image name and android:id in logo place you can give any name

No comments:

Post a Comment