Articles → Android → ImageView in android

ImageView in android






What is an ImageView control?





Example






Picture showing dragging and dropping the image view

Click to Enlarge



Picture showing selecting the image file for the image view

Click to Enlarge





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