What is relative layout in android studio ?

What is relative layout in android studio ?
 is a view group that displays child views in relative positions. The position of each view can be specified as relative to sibling elements (such as to the left-of or below another view)
 Relative layout in android studio is a layout which work like parents and child class with relative positions.
 e .g If we create a button ,text and password in Relative layout
 button
 text,
 password
 button ,
is parent class of text and when we move button in any place child class text ll be also move but password ll still there because it's not child class of button button text password and text is also a parent class of password as button and text move along each other text and password ll be also move button text password in simple words we use Relative Layout when we want to move parents and child in a column Linear Layout is a view group that aligns all children in a single direction, vertically or horizontally linear layout mein sab buttons and text wagera aik he direction mein hungay e.g horizontal
 button text password
 vertical
 button
 text
 password
Share on Google Plus

About Sona Butt

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment