--ADVERTISEMENT--

RelativeLayout is a view group that displays child views in relative positions. RelativeLayout allows you to display different views in different position in android app. Here, I am going to show you to display views in top left, top middle, top right, center, bottom of screen, etc. of android application.

Recommended:
How to Change Android Button on Click/Press Color
Android Relative Layout Example
Android Elevation Example

XML Layout File


res/layout/android_position.xml

Now, run your application which looks this.

Relative Layout - Views Position in Android

Post a Comment

Powered by Blogger.