Articles → Android → Imageview In Android

Imageview In Android






What Is An Imageview Control?





Example




  1. Drag and drop the image view
  2. Picture showing dragging and dropping the image view
    Click to Enlarge

  3. One you drop the image view, a pop up window will come to select the image
  4. Picture showing selecting the image file for the image view
    Click to Enlarge

  5. Select the image and click on Ok.


Picture showing the window for setting the attribute of image view
Click to Enlarge



Picture showing the output of ImageView in android
Click to Enlarge


Setting The Image Source From Java Code




ImageView imageView = (ImageView)findViewById(R.id.imageView2);
imageView.setImageResource(R.mipmap.ic_launcher);



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, November 12, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250