Absolute Layout in Android

An Absolute Layout lets you specify exact locations (x/y coordinates) of its children. Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning.

 

 

 

 

Main Attributes in Absolute Layout

1. android:layout_X

2. android:layout_y

Absolute Layout

Absolute Layout Example :

Activity_Main.Xml

MainActivity.Java

Output :-

Absolute Layout

About Jaimin Patel

I am a Web Developer. I have been blogging and researching since 1 years and like to share my knowledge and research with the world. Peace..!!

View all posts by Jaimin Patel →

Leave a Reply

Your email address will not be published. Required fields are marked *