Site icon IT Tutorial

Android Programming -5 Imageview Components

Hi guys in this tutorial I will talk about textview and imageview components.

In my previous tutorial, I talked about the buton components. If you have not read it yet, I recommend you read it first.




       /> </RelativeLayout>

Sometimes we need to show image in our application, in this case we can use imageview component. imageview component have a lot of attribute . For example, we set background image with android:src=”@mipmap/ic_launcher”  code, and setting the position on the page with android:layout_centerInParent=”true” code.  We can also define the color in the background , not just the picture.

when you will define the imageview component, do not forget setting the id, width and height attribute. We can this setting with the following code;




 1,183 views last month,  1 views today

Exit mobile version